Can anyone help me solve this error? I'm new to Laravel and I'm making a ProductController file but I'm getting this error from the Validator:
I have called use Validator; what else can I do
Install the following packages:
composer require --dev barryvdh/laravel-ide-helper
After that, run:
php artisan ide-helper:models php artisan ide-helper:generate php artisan ide-helper:meta
Finally, install this extension on your vs code: https://marketplace.visualstudio.com/items?itemName=georgykurian.laravel-ide-helper
Also, there is a good thing (optional): https:// /marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client
It should solve your problem.
Install the following packages:
After that, run:
Finally, install this extension on your vs code: https://marketplace.visualstudio.com/items?itemName=georgykurian.laravel-ide-helper
Also, there is a good thing (optional): https:// /marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client
It should solve your problem.