Undefined type 'Validator'.intelephense(1009)
P粉010967136
P粉010967136 2023-12-11 15:05:11
0
1
505

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

P粉010967136
P粉010967136

reply all(1)
P粉019353247

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!