Meisam
Results
2
comments of
Meisam
this code not working in middleware -------------------------------- public function handle($request, Closure $next) { $agent = new Agent(); if ($agent->isMobile()) { return $next($request); } return response(['erorr' => 'Access denied'], 403); }
when i use in middleware $agent is null