DEV Community

Discussion on: Fake Laravel Eloquent relations on the fly

Collapse
 
tagcoin profile image
Sandro

Nice article:) But I have a question: what's is the Factory::class that you use in your example? Which Factory::class?

Collapse
 
joelharkes profile image
Joël Harkes

Good point the app(Factory::class) is outdated you now probably want to do $class::factory() instead to get the factory of that class.