Skip to content

Instantly share code, notes, and snippets.

Created October 22, 2020 12:18
What would you like to do?
This file is the Forum Seeder Factory
/** @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