Laravel 5 - View [home] not found

I ran composer update and now I have a problem. I get this error when I try to load my home view:

 InvalidArgumentException in FileViewFinder.php line 140: View [home] not found. 

Yes, files exist in my directory (resources / views, etc.). Name home.blade.php .

My controller:

 <?php namespace Hulahoop\Http\Controllers; use Hulahoop\Http\Requests; use Hulahoop\Http\Controllers\Controller; use Illuminate\Http\Request; class HomeController extends Controller { /** * Display a listing of the resource. * * @return Response */ public function index() { return view('home'); } } 

Route:

 Route::get('/', ' HomeController@index '); 

This worked perfectly and it is a very simple function. What happened? Launch at the local estate FYI.

UPDATE:. When I run php artisan serve , I can view the view of the home page (e.g. http: // localhost: 8000 ). But there are no cubes on the estate. What gives?

+5
source share
2 answers

There seems to be a problem with the tramp and php artisan config:cache . If you run php artisan config:clear , and then try opening the page - you should see that it works fine - just make sure that you do not cache it using the wizard.

+14
source

Check out [ vendor/config.php ], it is hardcoded for local development.

+1
source

Source: https://habr.com/ru/post/1213593/


All Articles