Skip to content

Commit

Permalink
Support MorphTo controller #62,#85
Browse files Browse the repository at this point in the history
  • Loading branch information
wize-wiz committed Oct 17, 2019
1 parent c69b2a3 commit 85b3e72
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/HasDependencies.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,13 @@ public function availableFields(NovaRequest $request)
*/
protected function doesRouteRequireChildFields() : bool
{
return Str::endsWith(Route::currentRouteAction(), 'AssociatableController@index')
|| Str::endsWith(Route::currentRouteAction(), 'ResourceStoreController@handle')
|| Str::endsWith(Route::currentRouteAction(), 'ResourceUpdateController@handle')
|| Str::endsWith(Route::currentRouteAction(), 'FieldDestroyController@handle');
return Str::endsWith(Route::currentRouteAction(), [
'FieldDestroyController@handle',
'ResourceUpdateController@handle',
'ResourceStoreController@handle',
'AssociatableController@index',
'MorphableController@index',
]);
}

/**
Expand Down

0 comments on commit 85b3e72

Please sign in to comment.