Created
June 1, 2016 16:51
-
-
Save akmandev/b13b4309d7f31c9b72b78f7a4b31e5ac 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
<?php | |
public function authenticated(Request $request, $user){ | |
if(!$user->authority){ | |
return redirect('/admin'); | |
}else{ | |
return redirect('/'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment