I see no errors in your code whatsoever. Try to clear the cache and run the composer autoload to see if that helps:
composer dump-autoload
php artisan cache:clear
Laravel 5.2/PHP7/Windows 10. I am going through the first 7 Laracasts -- and I am trying to use a layout file for the first time. It was easy -- just create my standard web page with 3 @yield directives. I placed this file (called layout.blade.php) in my resources\views directory. Then I created a page about.blade.php which has @extends('layout') plus some small markup for @section('header') and @section('content'). Both of these blade pages are in the root of the views directory. My routes file contains:
Route::get('about', function () { $devs = ['Bob', 'Bobby', 'Bubba']; return view('about', compact('devs')); });
But the problem is that I get this error:
file_get_contents(C:\W\Apache24\htdocs\cloud\public\build/rev-manifest.json): failed to open stream: No such file or directory (View: C:\W\Apache24\htdocs\cloud\resources\views\layout.blade.php) (View: C:\W\Apache24\htdocs\cloud\resources\views\layout.blade.php)
I have meticulously checked the path and the file names. There is no problem there. Laravel simply cannot see or use my layout.blade.php file.
Am I too cutting edge here with the latest Laravel and PHP? Has anyone else seen this?
Please or to participate in this conversation.