Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

MatthiasBock332's avatar

HasFactory.php

I'm Watching Learning Laravel 11. I installed Laravel 12.

In Episode 10 Jeffrey is in "HasFactory.php" but I don't find it. When I'm writing it in the search window with CTRL+p nothing is displayed. And I'm a beginner, so I realy don't know what to do.

May someone know why I don't have it and how I can get it?

0 likes
3 replies
tykus's avatar

What series are you talking about?

The HasFactory class is in vendor/laravel/framework/src/Illuminate/Database/Eloquent/Factories/HasFactory.php, so the FQCN is Illuminate\Database\Eloquent\Factories\HasFactory. If your IDE cannot find it, then it probably has not properly indexed the project / vendor directory.

MatthiasBock332's avatar

@tykus I'm talking about the Series "30 days to learn laravel-11"

And you're right: With your path tutorial I can now see "HasFactory.php". So my IDE hasn't properly indexed the Project. That's strange.

Maybe someone has a clue how I can Index the project in VSCode properly?

Please or to participate in this conversation.