Warning: Undefined variable $factory in /home2/prabhati/public_html/hello/database/factories/UserFactory.php on line 20

Fatal error: Uncaught Error: Call to a member function define() on null in /home2/prabhati/public_html/hello/database/factories/UserFactory.php:20 Stack trace: #0 {main} thrown in /home2/prabhati/public_html/hello/database/factories/UserFactory.php on line 20