Check this
public function __construct()
{
$this->middleware(function ($request, $next) {
if(Session::get('user_id') == NULL)
{
return Redirect::to('login');
}else{
return $next($request);
}
});
}
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community