Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Session store not set on request.

/*
If adding your routes inside the web middleware doesn't work for any reason then try adding this to $middleware into Kernel.php
*/
# NOTE API route has no session by default. May be you can add this middleware in 'api' $middlewareGroups
protected $middleware = [
        //...
        IlluminateSessionMiddlewareStartSession::class,
        IlluminateViewMiddlewareShareErrorsFromSession::class,
];
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Session #store #set
ADD COMMENT
Topic
Name
9+9 =