Created
October 22, 2020 12:18
-
-
Save harryWonder/a0d5591ee8e5b385ddd76fc36797d693 to your computer and use it in GitHub Desktop.
This file is the Forum Seeder Factory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** @var \Illuminate\Database\Eloquent\Factory $factory */ | |
use App\Forum; | |
use Faker\Generator as Faker; | |
$factory->define(Forum::class, function (Faker $faker) { | |
return [ | |
'title' => $faker->text, | |
'content' => $faker->sentence, | |
'likes' => 0, | |
'comments' => 0 | |
]; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment