Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working anymore? #2

Open
royduin opened this issue Apr 19, 2019 · 1 comment · May be fixed by #3
Open

Not working anymore? #2

royduin opened this issue Apr 19, 2019 · 1 comment · May be fixed by #3

Comments

@royduin
Copy link

royduin commented Apr 19, 2019

In the network tab in my console I'm getting a 404 after selecting a option from the first dropdown. That's because of the $resource = $request->newResource(); which leads to the resource() method in the InteractsWithResources trait:

return tap(Nova::resourceForKey($this->route('resource')), function ($resource) {
    abort_if(is_null($resource), 404);
    abort_if(! $resource::authorizedToViewAny($this), 403);
});

$this->route('resource') is returning false because there is no resource route parameter in the route:

Route::post('/options', 'OptionsController@index');

Laravel: 5.8.10
Laravel Nova: 2.0.1

@royduin royduin linked a pull request Apr 19, 2019 that will close this issue
royduin added a commit to fredrikmikkelsen/laravel-nova-field-dynamic-select that referenced this issue Dec 8, 2020
Fix Nova >=3.9.0 compatibility
@bournewang
Copy link

still occurs
php: 8.0.9
"laravel/framework": "^7.29"
nova: 3.27.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants