Search
 
SCRIPT & CODE EXAMPLE
 

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
Comment

PREVIOUS NEXT
Code Example
Shell :: copy all files in folder with powershell 
Shell :: git revert commit 
Shell :: psycopg2 error 
Shell :: install bun sh 
Shell :: terminal how to find a file name 
Shell :: how to uninstall all plugins in ionic app 
Shell :: exec user process caused: exec format error 
Shell :: kill task cmd 
Shell :: add submodule 
Shell :: get mac address linux 
Shell :: switch to previous branch git 
Shell :: heroku git remote 
Shell :: find program path linux 
Shell :: how to check crontab list 
Shell :: read a file in batch 
Shell :: how to use sed output to overwrite existin file 
Shell :: tar extract 
Shell :: changeset in jenkins pipeline 
Shell :: vite starting comand 
Shell :: red bash linux 
Shell :: adb shell error: more than one device/emulator 
Shell :: how to install pg_dump on mac 
Shell :: remove .svn recursively linux 
Shell :: see dhcp leases linux 
Shell :: git delete branch 
Shell :: ubuntu upgrade 
Shell :: linux search inside files 
Shell :: git username and password in terminal 
Shell :: debian docker 
Shell :: gitignroe remove folder 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =