Files
exchange-2.0/database/seeds/DatabaseSeeder.php
T
omair saleh 05401f6bbc large commit
2021-03-11 13:06:40 +08:00

36 lines
796 B
PHP

<?php
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
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();
}
}