Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function boot() {
- View::composer('templates.default', function ($view) {
- if(Auth::user()) {
- if (Auth::user()->username == null || Auth::user()->username == "") {
- return redirect()->route('auth.chooseUsername');
- }
Add Comment
Please, Sign In to add comment