Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

pass in value in route group middle ware

public function handle($request, Closure $next, $level)
{
    $user = Auth::user();
    if ($user->level > $level) {
        return redirect('testUrl');
    }

    return $next($request);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pass #route #group #middle #ware
ADD COMMENT
Topic
Name
3+3 =