mirror of
https://github.com/kevin-DL/commander_league_api.git
synced 2026-01-13 19:25:27 +00:00
Game formats
- Created the formats tables/migrations - Created the controller to retrieve the formats
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
/** @var \Illuminate\Database\Eloquent\Factory $factory */
|
||||
|
||||
use App\Model\Format;
|
||||
use App\User;
|
||||
use Faker\Generator as Faker;
|
||||
|
||||
@@ -22,3 +23,9 @@ $factory->define(User::class, function (Faker $faker) {
|
||||
'email' => $faker->email,
|
||||
];
|
||||
});
|
||||
|
||||
$factory->define(Format::class, function (Faker $faker){
|
||||
return [
|
||||
'name' => $faker->name
|
||||
];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user