I ran into a weird problem. I'm using Nwidart Laravel Modules package. I have got many modules and everything works as expected: service providers register routes for each module etc. But suddenly, I lost contact with one module - all my endpoints are not registered - I see only 404 error page. At first, I checked php artisan route:list
- missing API routes are there. Then I checked php artisan module:list
- the missing module is loaded and enabled. Next step: check module.json
file in module directory: looks ok, module service provider exists in providers
array. I do some debugging, and I found that this provider is not loaded anymore. I am trying to figure out what's wrong here, but I'm out of ideas.
Update:
After I run php artisan route:cache
command, missing routes are now available.