my website run correctly at localhost but when i upload it on CPanel it makes a mistake and say me view index not found
InvalidArgumentException View [index] not found.
this is my Route Code:
Route::get('/', function () {
return view('index');
});
Also i executed these commands:
php artisan config:cache
php artisan config: clear
php artisan view:clear
composer update
php artisan route:clear
but it have no response!!!!!
4
Answers
i solved it, i upload new project and it solved but i don't know what is the issue of last project. It's so weird
You should try : php artisan cache:clear
If these commands work:
Maybe the problem is that your server is not setting up properly because the domain doesnt connected properly to your VPS. Contact the hosting provider.
What’s your
resources/views
directory’s permission? It should accessible by your web server.