title: Error App\Http\Requests\AddUserRequest::fails does not exist
body: <p>I get this error when I want to insert data into the table and return a message.
  Here is my code.
  When I entered the form and submitted, an error occurred: Method App\Http\Requests\AddUserRequest::fails does not exist.</p>
  
  <p>Code In Router:</p>
  
  <pre><code>/**************Quản lý user*****************/
  Route::get('admin/manage-user', 'UserController@getList')-&gt;middleware('admin');
  Route::get('admin/manage-user/add', 'UserController@indexAdd')-&gt;middleware('admin');
  Route::post('admin/manage-user/add', 'UserController@getAdd')-&gt;middleware('admin');
  </code></pre>
  
  <p>Code In UserController:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  use App\User;
  use App\Http\Requests\AddUserRequest;
  class UserController extends Controller
  {
      //
      public function getList()
      {
          $data = User::paginate(10);
          return view('admin.manage-user',['data' =&gt; $data]);
      }
      public function indexAdd()
      {
          return view('admin.add-user');
      }
      public function getAdd(AddUserRequest $request)
      {
          if($request-&gt;fails())
          {
              return redirect('admin.add-user')
                              -&gt; withInput()
                              -&gt; withErrors($request);
          }else
          {
              User::create([
                  'name' =&gt; $request-&gt;username,
                  'email' =&gt; $request-&gt;email,
                  'password' =&gt; Hash::make($request-&gt;pass1),
                  'level' =&gt; 0,
              ]);
              return redirect('admin.add-user')-&gt;with('success',"Done!!");
          }
      }
  }
  </code></pre>
  
  <p>Code In view:</p>
  
  <pre><code>@extends('layouts.admin')
  @section('title','Add User')
  @section('content')
      &lt;div class="row"&gt;
          &lt;div class="col-md-3"&gt;&lt;/div&gt;
          &lt;div class="col-md-6"&gt;
              &lt;div class="box box-primary"&gt;
              &lt;div class="box-header with-border"&gt;
                &lt;h3 class="box-title"&gt;Add User&lt;/h3&gt;
              &lt;/div&gt;
              &lt;!-- /.box-header --&gt;
              &lt;!-- form start --&gt;
              &lt;form role="form" action="{{url('admin/manage-user/add')}}" method="post"&gt;
                &lt;div class="box-body"&gt;
                   @csrf
                  &lt;div class="form-group"&gt;
                      @if (session('success'))
                      &lt;div class="alert alert-success"&gt;
                            &lt;p&gt;{{ session('success') }}&lt;/p&gt;
                      &lt;/div&gt;
                      @endif
                      @if ($errors-&gt;any())
                          &lt;div class="alert alert-danger"&gt;
                              &lt;b&gt;Lỗi!! Bạn vui vòng kiểm tra lại:&lt;/b&gt;
                              &lt;ul&gt;
                                  @foreach ($errors-&gt;all() as $error)
                                      &lt;li&gt;{{ $error }}&lt;/li&gt;
                                  @endforeach
                              &lt;/ul&gt;
                          &lt;/div&gt;
                      @endif
                  &lt;/div&gt;
  </code></pre>
  
  <p>In AddUserRequest:</p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Requests;
  
  use Illuminate\Foundation\Http\FormRequest;
  use Illuminate\Http\Request;
  class AddUserRequest extends FormRequest
  {
      /**
       * Determine if the user is authorized to make this request.
       *
       * @return bool
       */
      public function authorize()
      {
          return true;
      }
  
      /**
       * Get the validation rules that apply to the request.
       *
       * @return array
       */
      public function rules()
      {
          return [
              'username' =&gt; 'required|max:200',
              'email' =&gt; 'required|email|unique:users',
              'pass1' =&gt; 'required|min:6',
              'pass2' =&gt; 'same:pass1',
          ];
      }
  }
  </code></pre>
  
  <p>Thank you for your help!</p>