Faker icon indicating copy to clipboard operation
Faker copied to clipboard

Undefined type 'Database\Seeders\Faker\Factory'.intelephense(1009)

Open udlover opened this issue 4 years ago • 1 comments

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!

udlover avatar Oct 04 '20 17:10 udlover

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.

carlos-mora avatar Oct 23 '20 08:10 carlos-mora