expectsJson()) { // * Notify must login Session::flash('warning', trans('Veuillez vous connecter pour continuer')); return route('login'); } return null; } }