The requested resource was not found on this server, when it is there and worked fine earlier
Hello, I have this problem for a 3rd time. I am following on the tutorial for ProjectFlyer with Laravel 5.1. (When it didn't worked I started over again).
I am using the laravel built in server locally. And I was able to save a flyer 5 minutes ago. I did go back multiple times to save again and again and now it just doesn't work.
I have those routes.
Ok, for anyone interested I found the issue. The base directory to save flyers images is /flyers/photos and it's somehow making problem with the route to /flyer. Changed the folder name and is good now.
What you do is change the name of the public/flyers folder to public/images then go into app/photo.php and change ''' protected $baseDir = 'flyers/photos'; ''' to ''' protected $baseDir = 'images/photos'; '''
It may that under public you have a folder name as admin. That can be source of your problems.
in the folder "ROOT/public/" possible exist "flyers" folder. rename "flyers" to other name. the problem is ok
That error occurs when you create a folder in the public folder with the same name as your route so please change the name of the folder you have put in the public folder so that it has a different name from your route this will probably solve your error.
This happens when you have a folder in the public folder with the same name as your route.
You can solve this by renaming the folder or changing the route.
like : Route::get('flyer',[Controller::class,'method']); instead of