Created
September 24, 2019 19:10
-
-
Save MaheKarim/774496f56993e8c5c2ec67c9a2c60deb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function handle($request, Closure $next) | |
{ | |
if(auth::user()->user_role != 1){ | |
return redirect('/'); | |
} | |
return $next($request); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment