Skip to content

Instantly share code, notes, and snippets.

@harryWonder
Created October 22, 2020 12:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save harryWonder/a0d5591ee8e5b385ddd76fc36797d693 to your computer and use it in GitHub Desktop.
Save harryWonder/a0d5591ee8e5b385ddd76fc36797d693 to your computer and use it in GitHub Desktop.
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