Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This file is the Forum Seeder Factory
<?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