Guest User

Untitled

a guest
Nov 19th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. public function boot() {
  2. View::composer('templates.default', function ($view) {
  3.  
  4. if(Auth::user()) {
  5.  
  6. if (Auth::user()->username == null || Auth::user()->username == "") {
  7. return redirect()->route('auth.chooseUsername');
  8. }
Add Comment
Please, Sign In to add comment