I'm trying to figure out if it's possible to generate multiple records calling a factory with a tinker command specifying the values.
At the moment I'm generating some user Teams and Roles like this.
Team::factory()->create([
'name' => 'Super Admin',
]);
Team::factory()->create([
'name' => 'Admin',
]);
Team::factory()->create([
'name' => 'Manager',
]);
--
Ability::factory()->create([
'name' => 'Edit blog post',
]);
Ability::factory()->create([
'name' => 'User data management',
]);
Is it possible to do it in just 2 commands instead of 5?
I solved creating a seeder: