From 0daa7fc2ccded1b203940858c4ac915805988e27 Mon Sep 17 00:00:00 2001 From: Vanderlei Sbaraini Amancio Date: Tue, 9 Jan 2024 08:41:29 -0300 Subject: [PATCH] Fix duplicated use --- src/Observers/NovaInlineRelationshipObserver.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); })