auth->check()) { return route('/dashboard'); } else { return route('/'); } } }