Undefined type 'Database\Seeders\Faker\Factory'.intelephense(1009)
udlover opened this issue · 1 comments
udlover commented
I'm new to laravel and use fzaninotto/Faker for practice seeding and i got the error when i create the instance
$faker = Faker\Factory::create();
Error is: Undefined type 'Database\Seeders\Faker\Factory'.intelephense(1009)
Thanks!
carlos-mora commented
The problem is with Intelephense probably. I use it in VSCode, but locked the updates in 1.2.3, because ongoing versions don't recognize standard Laravel classes, and requires to add fake helpers to get things working. Please try locking intelephense in version in 1.2.3 and see if that solves the issue.