I deployed my Laravel project months ago. Everything was working fine.
But today when I added few more routes to web.php file, the new routes are not showing up, showing page not found error.
Checked apache.conf for AllowOverride and laravel’s .htaccess, all are fine. Updated composer too.
I wonder why these newly added routes are not working. Also tried clearing cache for routes.
Nothing worked.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
As your old routes are working fine, my guess would be that your Laravel Route Cache needs to be refreshed so that you could see the new routes. You could try with one of those commands:
php artisan cache:clear
php artisan route:cache
It should work after that. Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.