check()) { return redirect('teacher_profile'); } return $next($request); } }