Last active
October 22, 2020 11:17
-
-
Save harryWonder/ae3f0b7f4acba2bd20c8ac63a7a25e7d to your computer and use it in GitHub Desktop.
This File fills up the forum table seeder with some forums information.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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