feat: add app and database modules
This commit is contained in:
@@ -0,0 +1,350 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class PermissionsTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('permissions')->delete();
|
||||
|
||||
\DB::table('permissions')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'name' => 'view dashboard',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'name' => 'view user directory',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'name' => 'manage user directory',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 4,
|
||||
'name' => 'impersonate users',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'id' => 5,
|
||||
'name' => 'view access rights',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'id' => 6,
|
||||
'name' => 'manage access rights',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'id' => 7,
|
||||
'name' => 'view health and logs',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
7 =>
|
||||
array (
|
||||
'id' => 8,
|
||||
'name' => 'manage health and logs',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
8 =>
|
||||
array (
|
||||
'id' => 9,
|
||||
'name' => 'view system health',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
9 =>
|
||||
array (
|
||||
'id' => 10,
|
||||
'name' => 'manage system health',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
10 =>
|
||||
array (
|
||||
'id' => 11,
|
||||
'name' => 'view action history',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
11 =>
|
||||
array (
|
||||
'id' => 12,
|
||||
'name' => 'manage action history',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
12 =>
|
||||
array (
|
||||
'id' => 13,
|
||||
'name' => 'view pulse',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
13 =>
|
||||
array (
|
||||
'id' => 14,
|
||||
'name' => 'view telescope',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
14 =>
|
||||
array (
|
||||
'id' => 15,
|
||||
'name' => 'view api docs',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
15 =>
|
||||
array (
|
||||
'id' => 16,
|
||||
'name' => 'view active sessions',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
16 =>
|
||||
array (
|
||||
'id' => 17,
|
||||
'name' => 'manage active sessions',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
17 =>
|
||||
array (
|
||||
'id' => 18,
|
||||
'name' => 'view global settings',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
18 =>
|
||||
array (
|
||||
'id' => 19,
|
||||
'name' => 'manage global settings',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
19 =>
|
||||
array (
|
||||
'id' => 20,
|
||||
'name' => 'view maintenance mode',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
20 =>
|
||||
array (
|
||||
'id' => 21,
|
||||
'name' => 'manage maintenance mode',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
21 =>
|
||||
array (
|
||||
'id' => 22,
|
||||
'name' => 'view backup and storage',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
22 =>
|
||||
array (
|
||||
'id' => 23,
|
||||
'name' => 'manage backup and storage',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
23 =>
|
||||
array (
|
||||
'id' => 24,
|
||||
'name' => 'view mobile settings',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:12',
|
||||
'updated_at' => '2026-05-12 22:01:12',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
24 =>
|
||||
array (
|
||||
'id' => 25,
|
||||
'name' => 'manage mobile settings',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:13',
|
||||
'updated_at' => '2026-05-12 22:01:13',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
25 =>
|
||||
array (
|
||||
'id' => 26,
|
||||
'name' => 'view notification center',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:13',
|
||||
'updated_at' => '2026-05-12 22:01:13',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
26 =>
|
||||
array (
|
||||
'id' => 27,
|
||||
'name' => 'manage notification center',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:13',
|
||||
'updated_at' => '2026-05-12 22:01:13',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user