fzaninotto / Faker

Faker is a PHP library that generates fake data for you

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

udlover opened this issue · 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!

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.