Game formats

- Created the formats tables/migrations
- Created the controller to retrieve the formats
This commit is contained in:
2020-10-31 19:20:53 +00:00
parent 49778dbbc8
commit 0691e5a107
13 changed files with 350 additions and 231 deletions

View File

@@ -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
];
});