Migrations and factories

This commit is contained in:
2020-08-08 20:44:24 +05:00
parent c20392a24c
commit a587a25491
7 changed files with 188 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<?php
/** @var \Illuminate\Database\Eloquent\Factory $factory */
use App\Topic;
use Faker\Generator as Faker;
$factory->define(Topic::class, function (Faker $faker) {
return [
"name" => $faker->name,
"slug" => $faker->slug
];
});