Say for 404 Exception handling I'm trying to display a 404 page separately for admin and front pages based upon the user session, following is my render function of Handler.php file
public function render($request, Exception $e)
{
echo Session::has('user.id');
...
...
}
But Session::has('user.id')
always returning null value and I'm unable to decide if the user is actually logged-in.
In one of my old Laravel projects I have used the same logic and is successfully working, current project Laravel version is 5.2.45
Thank you for your help.