skip to Main Content

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


  1. Chosen as BEST ANSWER

    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


  2. You should try : php artisan cache:clear

    Login or Signup to reply.
  3. If these commands work:

     php artisan config:cache or php artisan
     config:clear?
     named your view correctly with yourview.blade.php?
     placed the view correctly in the resourcesviews?
    

    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.

    Login or Signup to reply.
  4. What’s your resources/views directory’s permission? It should accessible by your web server.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search