50 lines
1.3 KiB
PHP
50 lines
1.3 KiB
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace Database\Seeders;
|
||
|
|
|
||
|
|
use Illuminate\Database\Seeder;
|
||
|
|
use Illuminate\Support\Facades\DB;
|
||
|
|
use Carbon\Carbon;
|
||
|
|
|
||
|
|
class MenusTableSeeder extends Seeder
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
* Run the database seeds.
|
||
|
|
*/
|
||
|
|
public function run(): void
|
||
|
|
{
|
||
|
|
DB::table('menus')->insert([
|
||
|
|
[
|
||
|
|
'id' => 61,
|
||
|
|
'title' => 'Role Manager',
|
||
|
|
'url' => '/admin/roles',
|
||
|
|
'icon' => 'mdi mdi-account-key-outline',
|
||
|
|
'parent_id' => 62,
|
||
|
|
'order' => 1,
|
||
|
|
'created_at' => Carbon::now(),
|
||
|
|
'updated_at' => Carbon::now(),
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'id' => 62,
|
||
|
|
'title' => 'System Administrator',
|
||
|
|
'url' => '#',
|
||
|
|
'icon' => 'mdi mdi-cog-outline',
|
||
|
|
'parent_id' => null,
|
||
|
|
'order' => 99,
|
||
|
|
'created_at' => Carbon::now(),
|
||
|
|
'updated_at' => Carbon::now(),
|
||
|
|
],
|
||
|
|
[
|
||
|
|
'id' => 63,
|
||
|
|
'title' => 'Users List Accounts',
|
||
|
|
'url' => '/admin/admins',
|
||
|
|
'icon' => 'mdi mdi-account-group',
|
||
|
|
'parent_id' => 62,
|
||
|
|
'order' => 0,
|
||
|
|
'created_at' => Carbon::now(),
|
||
|
|
'updated_at' => Carbon::now(),
|
||
|
|
]
|
||
|
|
]);
|
||
|
|
}
|
||
|
|
}
|