title: How To Make Validations With Requests In Laravel 8?
body: <p>I am using Laravel 8.
  I am trying to validate inputs for creating users in the store method of my controller using requests.
  Store method of my user controller
  UserController.php</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Controllers;
  
  use App\Http\Requests\UserCreateRequest;
  use App\Models\User;
  use Illuminate\Http\Request;
  use Illuminate\Support\Facades\Hash;
  
  class UserController extends Controller
  {
      public function store(UserCreateRequest $request)
      {
          $user = User::create([
              'name' =&gt; $request-&gt;input('name'),
              'email' =&gt; $request-&gt;input('email'),
              'password' =&gt; Hash::make($request-&gt;input('password')),    
          ]);
  
          return response($user, 201);
      }
  
     
  }
  </code></pre>
  <p>UserCreateRequest.php is the file I used to make validation.
  UserCreateRequest.php</p>
  <pre><code>&lt;?php
  
  namespace App\Http\Requests;
  
  use Illuminate\Foundation\Http\FormRequest;
  
  
  
  class UserCreateRequest 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 [
              'name' =&gt; 'required|min:3|max:25',
              'email' =&gt; 'required|email',
          ];
      }
  }
  </code></pre>
  <p>But the problem is I get this error</p>
  <pre><code>{
      &quot;message&quot;: &quot;Method Illuminate\\Validation\\Validator::validateRequierd does not exist.&quot;,
      &quot;exception&quot;: &quot;BadMethodCallException&quot;,
      &quot;file&quot;: &quot;/app/vendor/laravel/framework/src/Illuminate/Validation/Validator.php&quot;,
      &quot;line&quot;: 1395,
      &quot;trace&quot;: [
          {
              &quot;file&quot;: &quot;/app/vendor/laravel/framework/src/Illuminate/Validation/Validator.php&quot;,
              &quot;line&quot;: 554,
  </code></pre>