finish basic crud api
This commit is contained in:
1 parent
644dbd9ea2
commit
fa6d769daa
9 files changed
+229
-27
No files matched your search
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
/** @var \Illuminate\Database\Eloquent\Factory $factory */
|
||||
|
||||
use App\Models\EventCategory;
|
||||
use Faker\Generator as Faker;
|
||||
|
||||
$factory->define(EventCategory::class, function (Faker $faker) {
|
||||
return [
|
||||
'name' => $faker->words(3, [false]),
|
||||
'description' => $faker->words(rand(10, 30), [false]),
|
||||
];
|
||||
});
|
||||
Reference in new issue
Block a user