looking for some solutions? You are welcome.

SOLVED: Request attributes return null in construct

peaphiochese:

I define $request->attributes in middleware

$request->attributes->add(['user' => $user ]);

when i use

$request->attributes('user')

in function it work and return value but when use in __construct return null ! i need to use

$request->attributes

in __construct in laravel 5.8



Posted in S.E.F
via StackOverflow & StackExchange Atomic Web Robots
Share:

No comments:

Recent