Skip to content

Commit

Permalink
Merge pull request #127 from kirschbaum-development/fix-duplicated-use
Browse files Browse the repository at this point in the history
Fix duplicated use
  • Loading branch information
harrysbaraini authored Jan 9, 2024
2 parents 88806f9 + 0daa7fc commit fbb307e
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 fbb307e

Please sign in to comment.