Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
This File fills up the forum table seeder with some forums information.
<?php
use Illuminate\Database\Seeder;
class ForumsTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
factory(App\Forum::class, 5)->create(['user_id' => 1]);
factory(App\Forum::class, 5)->create(['user_id' => 2]);
factory(App\Forum::class, 5)->create(['user_id' => 3]);
factory(App\Forum::class, 5)->create(['user_id' => 4]);
factory(App\Forum::class, 5)->create(['user_id' => 5]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment