phpvms/app/Database/seeds/DatabaseSeeder.php
Nabeel S 9f3ba05880
Issue/329 refactor seeding (#337)
* Fix Contracts class names

* Refactoring of the file seeds so it's not a mess

* StyleCI fixes
2019-08-05 08:27:53 -04:00

25 lines
419 B
PHP
Executable File

<?php
use App\Services\Installer\SeederService;
use Illuminate\Database\Seeder;
class DatabaseSeeder extends Seeder
{
private $seederService;
public function __construct()
{
$this->seederService = app(SeederService::class);
}
/**
* Run the database seeds.
*
* @throws Exception
*/
public function run()
{
$this->seederService->syncAllSeeds();
}
}