Created
July 9, 2020 20:09
-
-
Save minthemiddle/3eb5eadb7721dbc40aa6482e464362c4 to your computer and use it in GitHub Desktop.
Markdium-Lessons Learnt: PHPUnit for Beginners
This file contains 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()->is_admin) | |
{ | |
abort(403); | |
} | |
return $next($request); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment