Skip to content

Commit

Permalink
fix issue with belongsToMany relationship type
Browse files Browse the repository at this point in the history
  • Loading branch information
milewski committed Oct 22, 2019
1 parent e02de5a commit 61b4f52
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/HasConditionalContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Laravel\Nova\Fields\FieldCollection;
use Laravel\Nova\Http\Controllers\ActionController;
use Laravel\Nova\Http\Controllers\AssociatableController;
use Laravel\Nova\Http\Controllers\AttachableController;
use Laravel\Nova\Http\Controllers\CreationFieldController;
use Laravel\Nova\Http\Controllers\FieldController;
use Laravel\Nova\Http\Controllers\MorphableController;
Expand Down Expand Up @@ -152,7 +151,7 @@ private function flattenDependencies(NovaRequest $request, array $fields)
* If instance of any associative type flatten out all the fields
*/
if ($controller instanceof AssociatableController ||
$controller instanceof AttachableController ||
// $controller instanceof AttachableController ||
$controller instanceof MorphableController ||
$controller instanceof ResourceAttachController ||
$controller instanceof FieldController) {
Expand Down

0 comments on commit 61b4f52

Please sign in to comment.