mercredi 12 juillet 2017

Web middleware group not applied to error pages in Laravel?

I am upgrading a Laravel 4.2 application to Laravel 5.4.

The errors pages (in resources/views/errors) extend a common layout.blade.php which makes use of variables shared via View::share() in middleware, middleware which I have included in the web middleware group.

The error message is 'Undefined variable: ...' from the blade as the web middleware group isn't being used for the error pages.

How do I solve this problem?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2uhQkZs
via IFTTT

Aucun commentaire:

Enregistrer un commentaire