Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

yeasirarafat-dev's avatar

Laravel 8 View not found.

Hello everyone.

I'm using laravel version 8.40 and inertia js. I'm getting an error only on live serve not local. Error is laravel view is not able to find any view file from the resources/Views directory. it's throwing

InvalidArgumentException
View [hello] not found.

Route::get('/',function(){
return view('hello');
});

This Exception is on the throw in the hosting server, not my local server. In the local server, it's working fine.

0 likes
9 replies
Nakov's avatar

Try running php artisan view:clear on your server in case you have them cached.

frankielee's avatar

Probably is case sensitive. Can you show your blade file name?

frankielee's avatar

as @nakov mentioned,

  1. clear the cache: php artisan optimize:clear
  2. composer dump-autoload
  3. try again

btw, how do you access the route? by calling the URL directly? or there is a link button?

1 like
Respect's avatar
Respect
Best Answer
Level 3

1 - change resources/Views to resources/views (v) as small letter not capital

2 likes
yeasirarafat-dev's avatar

It works. but capital (V) is not throwing any error on the local server.

1 like
automica's avatar

local server is likely to be case-insensitive but remote should be case-sensitive.

3 likes
Respect's avatar

it taken path with file name called hello.blade.php | so error said view not found which mean file path not found | i mean not realted to folder name it's realted to file found or not in the correct place

Please or to participate in this conversation.