title: NotFoundHttpException with my Request file on api route
body: <p>I made a route in the api file that allow everybody to create users : </p>
  
  <pre class="lang-php prettyprint-override"><code>Route::post('users', 'UserController@addUser');
  </code></pre>
  
  <p>When I called it in postman without using request validation it works. But when I created my request file and use it, Laravel return a NotFoundHttpException.</p>
  
  <p>Here's my request file :</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php
  
  namespace App\Http\Requests;
  
  use Illuminate\Foundation\Http\FormRequest;
  
  class UserAddRequest 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 [
              'user_id' =&gt; 'required|numeric',
              'name' =&gt; 'required|string',
              'email' =&gt; 'required|string',
              'password' =&gt; 'required|string'
          ];
      }
  }
  </code></pre>
  
  <pre class="lang-php prettyprint-override"><code>public function addUser(UserAddRequest $request){
  
      $user = new User;
      $user-&gt;instance_user_id = $request-&gt;input('user_id');
      $user-&gt;name = $request-&gt;input('name');
      $user-&gt;email = $request-&gt;input('email');
      $user-&gt;password = $request-&gt;input('password');
      $user-&gt;save();
  
  }
  </code></pre>
  
  <p>There is no form because it needs to be send directly to the server with post method. I declared my route in routes/api.php and I call it with the url /api/users The api in that case doesn't need to check credentials.</p>