Buil a CMS with laravel

I’ve reached the 3.2 Securing the Back-End: Part 1 video whenever i try to reach the home page a message will pop out :
Undefined variable: errors (View: C:\Users\Elie R. Tayyar\Desktop\CMS\public\themes\default\views\layouts\backend.blade.php) (View: C:\Users\Elie R. Tayyar\Desktop\CMS\public\themes\default\views\layouts\backend.blade.php)

any suggestion please

A similar problem was discussed on StackOverflow: Laravel 5.2 $errors not appearing in Blade.

In that thread, the consensus solution was to

wrap all your web routes with a route group and apply the web middleware to them.

Route::group(['middleware' => 'web'], function() {
    // Place all your web routes here...
});

So, it looks to me like a solution might be to wrap the entire app/Http/routes.php file with that Route::group function. Although, wait a second, I don’t actually know Laravel!

@jasonclewis Do you have any input on this?

i tried this solution before however another error appear :
class web not defined :smile:

thank you for your support