diff --git a/src/Observers/NovaInlineRelationshipObserver.php b/src/Observers/NovaInlineRelationshipObserver.php index 6db922f..cc566e5 100644 --- a/src/Observers/NovaInlineRelationshipObserver.php +++ b/src/Observers/NovaInlineRelationshipObserver.php @@ -3,7 +3,6 @@ namespace KirschbaumDevelopment\NovaInlineRelationship\Observers; use Laravel\Nova\Nova; -use Laravel\Nova\Http\Requests\NovaRequest; use Illuminate\Database\Eloquent\Model; use Laravel\Nova\Http\Requests\NovaRequest; use KirschbaumDevelopment\NovaInlineRelationship\Integrations\Integrate; @@ -96,7 +95,7 @@ public function getRelationshipObserver(Model $model, $relationship): ?Relations */ protected function getModelRelationships(Model $model) { - return collect(Nova::newResourceFromModel($model)->fields(Nova::createFrom(request()))) + return collect(Nova::newResourceFromModel($model)->fields(NovaRequest::createFrom(request()))) ->flatMap(function ($value) { return Integrate::fields($value); })