Notice: Undefined variable: factory in /var/www/html/sistemas/apis-remove/database/factories/PostFactory.php on line 10

Fatal error: Uncaught Error: Call to a member function define() on null in /var/www/html/sistemas/apis-remove/database/factories/PostFactory.php:10 Stack trace: #0 {main} thrown in /var/www/html/sistemas/apis-remove/database/factories/PostFactory.php on line 10