Notice: Undefined variable: factory in C:\xampp\htdocs\doss.depa.or.th\database\factories\ModelFactory.php on line 14

Fatal error: Call to a member function define() on null in C:\xampp\htdocs\doss.depa.or.th\database\factories\ModelFactory.php on line 14