You can probably see that Im very new to laravel. I ran into a problem in which it does not seem to see the new class that I created ...
First, I ran ....
php artisan make:request CreateSongRequest
which, in turn, generated the CreateSongRequest.php file in the application / Http / Requests /
Content...
<?php namespace App\Http\Requests; use App\Http\Requests\Request; class CreateSongRequest extends Request { public function authorize() { return true; } public function rules() { return [
In my controller, I have a form message for the following method ...
public function store(CreateSongRequest $request, Song $song) { $song->create($request->all()); return redirect()->route('songs_path'); }
When I submit the form, Im getting the following error ...
ReflectionException on line RouteDependencyResolverTrait.php 53: Application of class \ Http \ Controllers \ CreateSongRequest does not exist
source share