mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 12:24:01 +00:00
29 lines
512 B
PHP
29 lines
512 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
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();
|
|
|
|
// Admin
|
|
$this->call(AdminsTableSeeder::class);
|
|
$this->call(AdminPermissionsTableSeeder::class);
|
|
|
|
// User
|
|
$this->call(UsersTableSeeder::class);
|
|
|
|
DB::commit();
|
|
}
|
|
}
|