Skip to content
This repository has been archived by the owner on Dec 11, 2020. It is now read-only.

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

Open
udlover opened this issue Oct 4, 2020 · 1 comment
Open

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

udlover opened this issue Oct 4, 2020 · 1 comment

Comments

@udlover
Copy link

udlover commented Oct 4, 2020

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
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants