lundi 4 novembre 2019

'Session store not set on request' after including header

I'm using the following exception handler in the handler.php file :

public function render($request, Exception $e)
{
    if ($e instanceof CustomException) {
        return response()->view('errors.404', [], 404);
    }

    return parent::render($request, $e);
}

It is working fine until I include the header to the 404.blade.php file :

@include('includes.header')

I start receiving this error :

Session store not set on request. (View: C:\xampp\htdocs\sharp\resources\views\includes\header.blade.php)


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire