mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
83a9cee82d
- Seeder CLF Company - DB Migration 4
34 lines
768 B
PHP
34 lines
768 B
PHP
<?php
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Seed the application's database.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function run()
|
|
{
|
|
DB::beginTransaction();
|
|
|
|
//General
|
|
$this->call(CountriesTableSeeder::class);
|
|
$this->call(CurrenciesTableSeeder::class);
|
|
$this->call(StatesTableSeeder::class);
|
|
$this->call(DistrictsTableSeeder::class);
|
|
|
|
$this->call(SegmentsTableSeeder::class);
|
|
$this->call(SegmentConstantsTableSeeder::class);
|
|
|
|
$this->call(CompaniesTableSeeder::class);
|
|
|
|
// Admin
|
|
$this->call(AdminUserTableSeeder::class);
|
|
$this->call(AdminUserPermissionsTableSeeder::class);
|
|
|
|
DB::commit();
|
|
}
|
|
}
|