title: laravel create request not working
body: <p>You can probably see Im very new to laravel. I have ran into an issue where it cant seem to see the new class I've made...</p>
  
  <p>Firstly I ran....</p>
  
  <pre><code>php artisan make:request CreateSongRequest
  </code></pre>
  
  <p>which in turn generated a CreateSongRequest.php file in app/Http/Requests/</p>
  
  <p>The contents...</p>
  
  <pre><code>&lt;?php namespace App\Http\Requests;
  
  use App\Http\Requests\Request;
  
  class CreateSongRequest extends Request {
  
      /**
       * 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 [
  
              //
          ];
      }
  
  }
  </code></pre>
  
  <p>In my controller I have the form post to the following method...</p>
  
  <pre><code>public function store(CreateSongRequest $request, Song $song) {
  
  
      $song-&gt;create($request-&gt;all());
  
      return redirect()-&gt;route('songs_path');
  }
  </code></pre>
  
  <p>When I submit the form, Im getting the following error...</p>
  
  <p>ReflectionException in RouteDependencyResolverTrait.php line 53: Class App\Http\Controllers\CreateSongRequest does not exist</p>