-
Notifications
You must be signed in to change notification settings - Fork 43
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
Controller not found #27
Comments
Hi! So it says this does not exist: As you can see that's missing your So the answer to this is: it depends whether you're using the It looks like you aren't. So in that case you'd need to do: JsonApiRoute::server('v1')
->prefix('v1')
->resources(function ($server) {
$server->resource('buildings', \App\Http\Controllers\Api\V1\BuildingController::class);
}); The relevant section of the docs is here: Let me know if that solves it. |
Thanks for the help. Now it works perfectly, ignore when I read the paragraph that explains it clearly, sorry for my mistake. All the best. |
No problem, glad you got it working. |
First of all, thank you for the time and the package.
I need to customize some of the create and update functions so I have created a controller for the resource as the documentation says
php artisan jsonapi:controller Api/V1/BuildingController
In routes add the buildings resource
But when I go to see the routes, it say me the Controller not exists
But is here
If I use the JSON:API Controller work perfect
Thanks for your time.
The text was updated successfully, but these errors were encountered: