Create resource not found
Hello everyone,
I have a small problem with one of my resources (CustomerResource). Originally, I had removed the creation page to keep only the modal because the form was quite simple. It got more complex later, but I can't find the creation page. Every time I get a 404...
https://i.postimg.cc/GLGyPd4K/route-list.jpg
https://i.postimg.cc/Hxgjv8r2/404.jpg
I've compared it with my other resources and it all looks good... I only have the problem with this resource.
Thanks
I have a small problem with one of my resources (CustomerResource). Originally, I had removed the creation page to keep only the modal because the form was quite simple. It got more complex later, but I can't find the creation page. Every time I get a 404...
- I do have a page
resources/CustomerResource/CreateCustomer.php - The page is correctly listed in
getPages() - My route is present in
php artisan route:listand the URL is correct - I've cleared the routes and application cache
https://i.postimg.cc/GLGyPd4K/route-list.jpg
https://i.postimg.cc/Hxgjv8r2/404.jpg
I've compared it with my other resources and it all looks good... I only have the problem with this resource.
Thanks



Solution
You put the
create route below the view route so it tries to look for a record with the slug create.