Skip to content

Instantly share code, notes, and snippets.

@harryWonder
Last active October 22, 2020 11:17
Show Gist options
  • Save harryWonder/ae3f0b7f4acba2bd20c8ac63a7a25e7d to your computer and use it in GitHub Desktop.
Save harryWonder/ae3f0b7f4acba2bd20c8ac63a7a25e7d to your computer and use it in GitHub Desktop.
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