Can you advise please? I'm encountering an error where laravel isn't recognising the 'ContactFormRequest' file, even though I have one. It comes up whenever I type into the input fields. I've tried "use App\Http\Livewire\ContactFormRequest;: in my web.php file but the problem is still happening
@@wisdomdiala Hi again, tried that but it's still not working. According to the laravel docs window, it's highlighting ' return (new ContactFormRequest() )->rules(); ' as the problem
Can you advise please? I'm encountering an error where laravel isn't recognising the 'ContactFormRequest' file, even though I have one. It comes up whenever I type into the input fields. I've tried "use App\Http\Livewire\ContactFormRequest;: in my web.php file but the problem is still happening
Import the form request inside your controller
@@wisdomdiala Hi again, tried that but it's still not working. According to the laravel docs window, it's highlighting ' return (new ContactFormRequest() )->rules(); ' as the problem
@@graemerobinson6920 use this "use App\Http\Requests\ContactFormRequest" inside your controller
@@wisdomdiala thank you @wisdomdiala, that resolved the problem
@@graemerobinson6920 You're welcome, you can subscribe, like and share the video. Thanks