HovedprosjektWebApp/database/seeds/DatabaseSeeder.php

21 lines
466 B
PHP

<?php
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
/**
* Seed the application's database.
*
* @return void
*/
public function run()
{
$this->call(UserSeeder::class);
// Uncomment if you want to add 20 random users.
// Alternatively run `php artisan db:seed --class=RandomUserSeeder`
//$this->call(RandomUserSeeder::class);
$this->call(BlogPostSeeder::class);
}
}