I'm learning Laravel, I just uploaded my project to web hosting. But when I run the website, I get the error message
file_put_contents() failed to open stream no such file or directory hosting
Then I tried to reset-cache:
php artisan config:clear
php artisan event:clear
php artisan route:clear
php artisan view:clear
php artisan view:cache
php artisan route:cache
php artisan event:cache
php artisan config:cache
After I ran the command, another error message appeared:
Target class [App\Http\Controllers\PageController] does not exist.
I've made sure that the PageController is in the App\Http\Controllers directory.
What happened? How do I fix it?
I've tried clearing cache, changing routes, but nothing works.
composer dump-autoloadArtisan::call, unfortunately, I have tried calling dump-autoload viaArtisan::call('sump-autoload')but it doesn't work, I get the error message "The command "dump -autoload"does not exist.". Are there any steps I missed before uploading the project?PageController.phpand the class defined in it isPageController? trying to rule out case sensitivity issues with the filesystem