Rishab7
New Member
- Joined
- Apr 17, 2023
- Messages
- 21
- Thread Author
- #1
I am trying to learn the Laravel Framework from this post, but I am having trouble with the following:
When I access the route in my browser, I get the following error:
I have made sure that the welcome.blade.php view file exists in the resources/views directory. I have also tried restarting my server, but I am still getting the error.
Can someone please help me understand why I am getting this error and how to fix it?
PHP:
// Laravel route
Route::get('/', function () {
return view('welcome');
});
When I access the route in my browser, I get the following error:
PHP:
View [welcome] not found.
I have made sure that the welcome.blade.php view file exists in the resources/views directory. I have also tried restarting my server, but I am still getting the error.
Can someone please help me understand why I am getting this error and how to fix it?