title: How to Use custom request (make:request)? (laravel) Method App\Http\Requests\Custom::doesExistI does not exist
body: <p>I created a custom request to make my own validation. As i follow these <a href="https://github.com/alexeymezenin/laravel-best-practices#validation" rel="nofollow noreferrer">article</a>.</p>
  
  <p>I created <strong>ProfileRequest</strong></p>
  
  <pre><code>php artisan make:request ProfileRequest
  </code></pre>
  
  <p>Inside my <strong>ProfileRequest</strong></p>
  
  <pre><code>&lt;?php
  
  namespace App\Http\Requests;
  
  use Illuminate\Foundation\Http\FormRequest;
  
  class ProfileRequest 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:10',
              'age' =&gt; 'required|numeric'
          ]; 
      }
  }
  </code></pre>
  
  <p><hr>
  My problem is when I use the <strong>ProfileRequest</strong> inside the controller, like below:</p>
  
  <pre><code>namespace App\Http\Controllers;
  
  use Illuminate\Http\Request;
  class ProfileController extends Controller
  {
      public function update(ProfileRequest $request){
          return "123";
      }
  }
  </code></pre>
  
  <p>It returns an error like these below:</p>
  
  <pre><code>Class App\Http\Controllers\ProfileRequest does not exist
  </code></pre>
  
  <p>I need your help Sirs. Somebody know how to use the custom request?</p>