Skip to content

Commit

Permalink
Fix duplicated use
Browse files Browse the repository at this point in the history
  • Loading branch information
harrysbaraini committed Jan 9, 2024
1 parent 88806f9 commit 0daa7fc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Observers/NovaInlineRelationshipObserver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
})
Expand Down

0 comments on commit 0daa7fc

Please sign in to comment.