@error directive is not displaying errors in laravel view
问题 I'm working on custom Laravel login implementation. I have returned the error from controller as follows: $credentials = $request->only('email', 'password'); if (Auth::attempt($credentials)) { // Authentication passed... return redirect()->intended('surveys'); }else { return redirect()->back()->withErrors(['email', 'The Message']); } Here is my view implementation to extract this error: <div class="col-md-6"> <input id="email" type="email" class="form-control @error('email') is-invalid