Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

Call to undefined function factory() in Psy Shell code on line 1

In Laravel 8, the factory helper is no longer available. Your Thread model 
class should use `HasFactory` trait, then you can use your factory like this:

Thread::factory()->count(50)->create();

For more : https://laravel.com/docs/8.x/database-testing#creating-models
 
PREVIOUS NEXT
Tagged: #Call #undefined #function #Psy #Shell #code #line
ADD COMMENT
Topic
Name
7+3 =