How to send a value as parameter to the Factory Class – Laravel
I need to run a Factory 50 times, so inside the DatabseSeeder: public function run() { for($i=1;$i<=50;$i++){ (new CategoryQuestionFactory($i))->create(); } } So as you can see, I tried passing a variable called $i as parameter to CategoryQuestionFactory class. Then at…