koel/database/seeds/DatabaseSeeder.php

25 lines
507 B
PHP
Raw Normal View History

2015-12-13 04:42:28 +00:00
<?php
use Illuminate\Database\Eloquent\Model;
2015-12-14 13:22:39 +00:00
use Illuminate\Database\Seeder;
2015-12-13 04:42:28 +00:00
class DatabaseSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run()
{
Model::unguard();
// This must be run first, to check for dependencies
$this->call(UserTableSeeder::class);
$this->call(ArtistTableSeeder::class);
$this->call(AlbumTableSeeder::class);
$this->call(SettingTableSeeder::class);
Model::reguard();
}
}