phpvms/app/Database/seeds/DatabaseSeeder.php

25 lines
419 B
PHP
Raw Normal View History

2017-06-09 02:28:26 +08:00
<?php
use App\Services\Installer\SeederService;
2017-06-09 02:28:26 +08:00
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
private $seederService;
public function __construct()
{
$this->seederService = app(SeederService::class);
}
2017-06-09 02:28:26 +08:00
/**
* Run the database seeds.
2018-08-27 00:40:04 +08:00
*
* @throws Exception
2017-06-09 02:28:26 +08:00
*/
public function run()
{
$this->seederService->syncAllSeeds();
}
2017-06-09 02:28:26 +08:00
}