feat: add app and database modules
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ============================================================
|
||||
*
|
||||
* @project biiproject
|
||||
*
|
||||
* @author Andika Debi Putra
|
||||
*
|
||||
* @email andikadebiputra@gmail.com
|
||||
*
|
||||
* @website https://biiproject.com
|
||||
*
|
||||
* @copyright Copyright (c) 2026 Andika Debi Putra
|
||||
* @license Proprietary - All Rights Reserved
|
||||
*
|
||||
* @version 1.0.0
|
||||
*
|
||||
* @created 2026-05-01
|
||||
* ============================================================
|
||||
*
|
||||
* Unauthorized copying, modification, distribution, or use
|
||||
* of this file is strictly prohibited without prior written
|
||||
* permission from the author.
|
||||
* ============================================================
|
||||
*/
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Spatie\Permission\Models\Role;
|
||||
|
||||
class AdminUserSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
// Daftar user yang akan dibuat berdasarkan role
|
||||
$users = [
|
||||
[
|
||||
'name' => 'Admin',
|
||||
'email' => 'admin@biiproject.com',
|
||||
'role' => 'Administrator',
|
||||
],
|
||||
[
|
||||
'name' => 'Developer',
|
||||
'email' => 'developer@biiproject.com',
|
||||
'role' => 'Developer',
|
||||
],
|
||||
[
|
||||
'name' => 'User',
|
||||
'email' => 'user@biiproject.com',
|
||||
'role' => 'User',
|
||||
],
|
||||
];
|
||||
|
||||
foreach ($users as $userData) {
|
||||
$user = User::updateOrCreate(
|
||||
['email' => $userData['email']],
|
||||
[
|
||||
'name' => $userData['name'],
|
||||
'password' => Hash::make('password'),
|
||||
'email_verified_at' => now(),
|
||||
]
|
||||
);
|
||||
|
||||
// Pastikan role ada sebelum ditugaskan
|
||||
if (Role::where('name', $userData['role'])->exists()) {
|
||||
$user->syncRoles([$userData['role']]);
|
||||
}
|
||||
}
|
||||
|
||||
$this->command->info('All role-based users created successfully with password: password');
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* ============================================================
|
||||
*
|
||||
* @project biiproject
|
||||
*
|
||||
* @author Andika Debi Putra
|
||||
*
|
||||
* @email andikadebiputra@gmail.com
|
||||
*
|
||||
* @website https://biiproject.com
|
||||
*
|
||||
* @copyright Copyright (c) 2026 Andika Debi Putra
|
||||
* @license Proprietary - All Rights Reserved
|
||||
*
|
||||
* @version 1.0.0
|
||||
*
|
||||
* @created 2026-05-01
|
||||
* ============================================================
|
||||
*
|
||||
* Unauthorized copying, modification, distribution, or use
|
||||
* of this file is strictly prohibited without prior written
|
||||
* permission from the author.
|
||||
* ============================================================
|
||||
*/
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$this->call([
|
||||
// Use the newly generated seeders from current database state
|
||||
UsersTableSeeder::class,
|
||||
RolesTableSeeder::class,
|
||||
PermissionsTableSeeder::class,
|
||||
ModelHasRolesTableSeeder::class,
|
||||
ModelHasPermissionsTableSeeder::class,
|
||||
RoleHasPermissionsTableSeeder::class,
|
||||
SystemSettingsTableSeeder::class,
|
||||
MobileSettingsTableSeeder::class,
|
||||
]);
|
||||
$this->call(SystemSettingsTableSeeder::class);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,93 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\MobileSetting;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class MobileSettingSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
$settings = [
|
||||
// --- ASSETS ---
|
||||
['key' => 'theme_color_secondary', 'value' => '#1a1a1a', 'group' => 'assets', 'type' => 'string'],
|
||||
['key' => 'theme_color_primary', 'value' => '#c6f135', 'group' => 'assets', 'type' => 'string'],
|
||||
['key' => 'primary_font_family', 'value' => 'Outfit', 'group' => 'assets', 'type' => 'string'],
|
||||
['key' => 'logo_url', 'value' => '/storage/mobile-assets/logo_url_1777816317.png', 'group' => 'assets', 'type' => 'image_path'],
|
||||
['key' => 'splash_image_url', 'value' => '/storage/mobile-assets/splash_image_url_1777816317.png', 'group' => 'assets', 'type' => 'image_path'],
|
||||
|
||||
// --- GENERAL ---
|
||||
['key' => 'brand_color', 'value' => '#c6f135', 'group' => 'general', 'type' => 'string'],
|
||||
['key' => 'app_name', 'value' => 'biiproject', 'group' => 'general', 'type' => 'string'],
|
||||
['key' => 'app_version', 'value' => '2.0.0', 'group' => 'general', 'type' => 'string'],
|
||||
['key' => 'app_icon_url', 'value' => '/storage/mobile-assets/app_icon_url_1777816326.png', 'group' => 'general', 'type' => 'image_path'],
|
||||
['key' => 'store_url_android', 'value' => 'https://play.google.com/store/apps/details?id=com.biiproject', 'group' => 'general', 'type' => 'string'],
|
||||
['key' => 'store_url_ios', 'value' => 'https://apps.apple.com/app/biiproject', 'group' => 'general', 'type' => 'string'],
|
||||
|
||||
// --- FLAGS ---
|
||||
['key' => 'enable_registration', 'value' => 'true', 'group' => 'flags', 'type' => 'boolean'],
|
||||
['key' => 'enable_remember_me', 'value' => 'true', 'group' => 'flags', 'type' => 'boolean'],
|
||||
['key' => 'kill_switch_active', 'value' => 'false', 'group' => 'flags', 'type' => 'boolean'],
|
||||
['key' => 'require_otp_registration', 'value' => 'false', 'group' => 'flags', 'type' => 'boolean'],
|
||||
['key' => 'enable_biometrics', 'value' => 'false', 'group' => 'flags', 'type' => 'boolean'],
|
||||
['key' => 'enable_push_notifications', 'value' => 'true', 'group' => 'flags', 'type' => 'boolean'],
|
||||
|
||||
// --- NETWORK ---
|
||||
['key' => 'api_base_url', 'value' => 'http://192.168.8.129:8000', 'group' => 'network', 'type' => 'string'],
|
||||
['key' => 'api_timeout_ms', 'value' => '30000', 'group' => 'network', 'type' => 'integer'],
|
||||
['key' => 'api_retry_count', 'value' => '3', 'group' => 'network', 'type' => 'integer'],
|
||||
['key' => 'enable_ssl_pinning', 'value' => 'false', 'group' => 'network', 'type' => 'boolean'],
|
||||
['key' => 'environment_selector', 'value' => 'development', 'group' => 'network', 'type' => 'string'],
|
||||
['key' => 'api_version', 'value' => 'v1', 'group' => 'network', 'type' => 'string'],
|
||||
['key' => 'request_cache_ttl', 'value' => '3600', 'group' => 'network', 'type' => 'integer'],
|
||||
|
||||
// --- AUTH ---
|
||||
['key' => 'token_ttl_minutes', 'value' => '43200', 'group' => 'auth', 'type' => 'integer'],
|
||||
['key' => 'session_max_age', 'value' => '86400', 'group' => 'auth', 'type' => 'integer'],
|
||||
['key' => 'biometric_auth_type', 'value' => 'fingerprint', 'group' => 'auth', 'type' => 'string'],
|
||||
['key' => 'oauth_google_enabled', 'value' => 'false', 'group' => 'auth', 'type' => 'boolean'],
|
||||
['key' => 'oauth_apple_enabled', 'value' => 'false', 'group' => 'auth', 'type' => 'boolean'],
|
||||
['key' => 'login_max_attempts', 'value' => '5', 'group' => 'auth', 'type' => 'integer'],
|
||||
|
||||
// --- NOTIFICATION ---
|
||||
['key' => 'fcm_topic_default', 'value' => 'all_users', 'group' => 'notification', 'type' => 'string'],
|
||||
['key' => 'default_channel_id', 'value' => 'general', 'group' => 'notification', 'type' => 'string'],
|
||||
['key' => 'notification_sound_enabled', 'value' => 'true', 'group' => 'notification', 'type' => 'boolean'],
|
||||
['key' => 'badge_count_enabled', 'value' => 'true', 'group' => 'notification', 'type' => 'boolean'],
|
||||
['key' => 'priority_level', 'value' => 'high', 'group' => 'notification', 'type' => 'string'],
|
||||
|
||||
// --- SYSTEM ---
|
||||
['key' => 'sync_interval_ms', 'value' => '10000', 'group' => 'system', 'type' => 'integer'],
|
||||
['key' => 'min_app_version', 'value' => '1.0.0', 'group' => 'system', 'type' => 'string'],
|
||||
['key' => 'target_sdk_version', 'value' => '34', 'group' => 'system', 'type' => 'string'],
|
||||
['key' => 'system_timezone', 'value' => 'Asia/Jakarta', 'group' => 'system', 'type' => 'string'],
|
||||
['key' => 'google_analytics_id', 'value' => 'G-BII-2026-X', 'group' => 'system', 'type' => 'string'],
|
||||
['key' => 'default_locale', 'value' => 'en', 'group' => 'system', 'type' => 'string'],
|
||||
['key' => 'privacy_policy_url', 'value' => 'https://biiproject.com/privacy', 'group' => 'system', 'type' => 'string'],
|
||||
['key' => 'region_lock_enabled', 'value' => 'false', 'group' => 'system', 'type' => 'boolean'],
|
||||
['key' => 'min_sdk_version', 'value' => '21', 'group' => 'system', 'type' => 'string'],
|
||||
|
||||
// --- SUPPORT ---
|
||||
['key' => 'social_instagram_url', 'value' => '', 'group' => 'support', 'type' => 'string'],
|
||||
['key' => 'social_twitter_url', 'value' => '', 'group' => 'support', 'type' => 'string'],
|
||||
['key' => 'support_email', 'value' => 'support@biiproject.com', 'group' => 'support', 'type' => 'string'],
|
||||
['key' => 'support_whatsapp', 'value' => '628123456789', 'group' => 'support', 'type' => 'string'],
|
||||
['key' => 'live_chat_url', 'value' => '', 'group' => 'support', 'type' => 'string'],
|
||||
['key' => 'faq_url', 'value' => '', 'group' => 'support', 'type' => 'string'],
|
||||
|
||||
// --- ANALYTICS ---
|
||||
['key' => 'crashlytics_enabled', 'value' => 'true', 'group' => 'analytics', 'type' => 'boolean'],
|
||||
['key' => 'log_level', 'value' => 'error', 'group' => 'analytics', 'type' => 'string'],
|
||||
['key' => 'event_sampling_rate', 'value' => '1.0', 'group' => 'analytics', 'type' => 'string'],
|
||||
['key' => 'gdpr_compliance_enabled', 'value' => 'false', 'group' => 'analytics', 'type' => 'boolean'],
|
||||
];
|
||||
|
||||
foreach ($settings as $setting) {
|
||||
MobileSetting::updateOrCreate(
|
||||
['key' => $setting['key']],
|
||||
$setting
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,786 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class MobileSettingsTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('mobile_settings')->delete();
|
||||
|
||||
\DB::table('mobile_settings')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'key' => 'theme_color_secondary',
|
||||
'value' => '#1a1a1a',
|
||||
'group' => 'assets',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'key' => 'theme_color_primary',
|
||||
'value' => '#c6f135',
|
||||
'group' => 'assets',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'key' => 'primary_font_family',
|
||||
'value' => 'Outfit',
|
||||
'group' => 'assets',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 4,
|
||||
'key' => 'logo_url',
|
||||
'value' => '/storage/mobile-assets/logo_url_1777816317.png',
|
||||
'group' => 'assets',
|
||||
'type' => 'image_path',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'id' => 5,
|
||||
'key' => 'splash_image_url',
|
||||
'value' => '/storage/mobile-assets/splash_image_url_1777816317.png',
|
||||
'group' => 'assets',
|
||||
'type' => 'image_path',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'id' => 6,
|
||||
'key' => 'brand_color',
|
||||
'value' => '#c6f135',
|
||||
'group' => 'general',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'id' => 7,
|
||||
'key' => 'app_name',
|
||||
'value' => 'biiproject',
|
||||
'group' => 'general',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
7 =>
|
||||
array (
|
||||
'id' => 8,
|
||||
'key' => 'app_version',
|
||||
'value' => '2.0.0',
|
||||
'group' => 'general',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
8 =>
|
||||
array (
|
||||
'id' => 9,
|
||||
'key' => 'app_icon_url',
|
||||
'value' => '/storage/mobile-assets/app_icon_url_1777816326.png',
|
||||
'group' => 'general',
|
||||
'type' => 'image_path',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
9 =>
|
||||
array (
|
||||
'id' => 10,
|
||||
'key' => 'store_url_android',
|
||||
'value' => 'https://play.google.com/store/apps/details?id=com.biiproject',
|
||||
'group' => 'general',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
10 =>
|
||||
array (
|
||||
'id' => 11,
|
||||
'key' => 'store_url_ios',
|
||||
'value' => 'https://apps.apple.com/app/biiproject',
|
||||
'group' => 'general',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
11 =>
|
||||
array (
|
||||
'id' => 12,
|
||||
'key' => 'enable_registration',
|
||||
'value' => 'true',
|
||||
'group' => 'flags',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
12 =>
|
||||
array (
|
||||
'id' => 13,
|
||||
'key' => 'enable_remember_me',
|
||||
'value' => 'true',
|
||||
'group' => 'flags',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
13 =>
|
||||
array (
|
||||
'id' => 15,
|
||||
'key' => 'require_otp_registration',
|
||||
'value' => 'false',
|
||||
'group' => 'flags',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
14 =>
|
||||
array (
|
||||
'id' => 16,
|
||||
'key' => 'enable_biometrics',
|
||||
'value' => 'false',
|
||||
'group' => 'flags',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
15 =>
|
||||
array (
|
||||
'id' => 17,
|
||||
'key' => 'enable_push_notifications',
|
||||
'value' => 'true',
|
||||
'group' => 'flags',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
16 =>
|
||||
array (
|
||||
'id' => 19,
|
||||
'key' => 'api_timeout_ms',
|
||||
'value' => '30000',
|
||||
'group' => 'network',
|
||||
'type' => 'integer',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
17 =>
|
||||
array (
|
||||
'id' => 20,
|
||||
'key' => 'api_retry_count',
|
||||
'value' => '3',
|
||||
'group' => 'network',
|
||||
'type' => 'integer',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
18 =>
|
||||
array (
|
||||
'id' => 21,
|
||||
'key' => 'enable_ssl_pinning',
|
||||
'value' => 'false',
|
||||
'group' => 'network',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
19 =>
|
||||
array (
|
||||
'id' => 22,
|
||||
'key' => 'environment_selector',
|
||||
'value' => 'development',
|
||||
'group' => 'network',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
20 =>
|
||||
array (
|
||||
'id' => 23,
|
||||
'key' => 'api_version',
|
||||
'value' => 'v1',
|
||||
'group' => 'network',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
21 =>
|
||||
array (
|
||||
'id' => 24,
|
||||
'key' => 'request_cache_ttl',
|
||||
'value' => '3600',
|
||||
'group' => 'network',
|
||||
'type' => 'integer',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
22 =>
|
||||
array (
|
||||
'id' => 25,
|
||||
'key' => 'token_ttl_minutes',
|
||||
'value' => '43200',
|
||||
'group' => 'auth',
|
||||
'type' => 'integer',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
23 =>
|
||||
array (
|
||||
'id' => 26,
|
||||
'key' => 'session_max_age',
|
||||
'value' => '86400',
|
||||
'group' => 'auth',
|
||||
'type' => 'integer',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
24 =>
|
||||
array (
|
||||
'id' => 28,
|
||||
'key' => 'oauth_google_enabled',
|
||||
'value' => 'false',
|
||||
'group' => 'auth',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
25 =>
|
||||
array (
|
||||
'id' => 29,
|
||||
'key' => 'oauth_apple_enabled',
|
||||
'value' => 'false',
|
||||
'group' => 'auth',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
26 =>
|
||||
array (
|
||||
'id' => 30,
|
||||
'key' => 'login_max_attempts',
|
||||
'value' => '5',
|
||||
'group' => 'auth',
|
||||
'type' => 'integer',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
27 =>
|
||||
array (
|
||||
'id' => 31,
|
||||
'key' => 'fcm_topic_default',
|
||||
'value' => 'all_users',
|
||||
'group' => 'notification',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
28 =>
|
||||
array (
|
||||
'id' => 32,
|
||||
'key' => 'default_channel_id',
|
||||
'value' => 'general',
|
||||
'group' => 'notification',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
29 =>
|
||||
array (
|
||||
'id' => 33,
|
||||
'key' => 'notification_sound_enabled',
|
||||
'value' => 'true',
|
||||
'group' => 'notification',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
30 =>
|
||||
array (
|
||||
'id' => 34,
|
||||
'key' => 'badge_count_enabled',
|
||||
'value' => 'true',
|
||||
'group' => 'notification',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
31 =>
|
||||
array (
|
||||
'id' => 35,
|
||||
'key' => 'priority_level',
|
||||
'value' => 'high',
|
||||
'group' => 'notification',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
32 =>
|
||||
array (
|
||||
'id' => 36,
|
||||
'key' => 'sync_interval_ms',
|
||||
'value' => '10000',
|
||||
'group' => 'system',
|
||||
'type' => 'integer',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
33 =>
|
||||
array (
|
||||
'id' => 37,
|
||||
'key' => 'min_app_version',
|
||||
'value' => '1.0.0',
|
||||
'group' => 'system',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
34 =>
|
||||
array (
|
||||
'id' => 38,
|
||||
'key' => 'target_sdk_version',
|
||||
'value' => '34',
|
||||
'group' => 'system',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
35 =>
|
||||
array (
|
||||
'id' => 39,
|
||||
'key' => 'system_timezone',
|
||||
'value' => 'Asia/Jakarta',
|
||||
'group' => 'system',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
36 =>
|
||||
array (
|
||||
'id' => 40,
|
||||
'key' => 'google_analytics_id',
|
||||
'value' => 'G-BII-2026-X',
|
||||
'group' => 'system',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
37 =>
|
||||
array (
|
||||
'id' => 41,
|
||||
'key' => 'default_locale',
|
||||
'value' => 'en',
|
||||
'group' => 'system',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
38 =>
|
||||
array (
|
||||
'id' => 42,
|
||||
'key' => 'privacy_policy_url',
|
||||
'value' => 'https://biiproject.com/privacy',
|
||||
'group' => 'system',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
39 =>
|
||||
array (
|
||||
'id' => 43,
|
||||
'key' => 'region_lock_enabled',
|
||||
'value' => 'false',
|
||||
'group' => 'system',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
40 =>
|
||||
array (
|
||||
'id' => 44,
|
||||
'key' => 'min_sdk_version',
|
||||
'value' => '21',
|
||||
'group' => 'system',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
41 =>
|
||||
array (
|
||||
'id' => 47,
|
||||
'key' => 'support_email',
|
||||
'value' => 'support@biiproject.com',
|
||||
'group' => 'support',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
42 =>
|
||||
array (
|
||||
'id' => 48,
|
||||
'key' => 'support_whatsapp',
|
||||
'value' => '628123456789',
|
||||
'group' => 'support',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
43 =>
|
||||
array (
|
||||
'id' => 51,
|
||||
'key' => 'crashlytics_enabled',
|
||||
'value' => 'true',
|
||||
'group' => 'analytics',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
44 =>
|
||||
array (
|
||||
'id' => 52,
|
||||
'key' => 'log_level',
|
||||
'value' => 'error',
|
||||
'group' => 'analytics',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
45 =>
|
||||
array (
|
||||
'id' => 53,
|
||||
'key' => 'event_sampling_rate',
|
||||
'value' => '1.0',
|
||||
'group' => 'analytics',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
46 =>
|
||||
array (
|
||||
'id' => 54,
|
||||
'key' => 'gdpr_compliance_enabled',
|
||||
'value' => 'false',
|
||||
'group' => 'analytics',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
),
|
||||
47 =>
|
||||
array (
|
||||
'id' => 55,
|
||||
'key' => 'app_tagline',
|
||||
'value' => 'Smart Solution for Your Business',
|
||||
'group' => 'branding',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
48 =>
|
||||
array (
|
||||
'id' => 57,
|
||||
'key' => 'maintenance_start_at',
|
||||
'value' => NULL,
|
||||
'group' => 'control_center',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
49 =>
|
||||
array (
|
||||
'id' => 58,
|
||||
'key' => 'maintenance_end_at',
|
||||
'value' => NULL,
|
||||
'group' => 'control_center',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
50 =>
|
||||
array (
|
||||
'id' => 59,
|
||||
'key' => 'maintenance_bypass_ips',
|
||||
'value' => '127.0.0.1',
|
||||
'group' => 'control_center',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
51 =>
|
||||
array (
|
||||
'id' => 60,
|
||||
'key' => 'announcement_text',
|
||||
'value' => 'Maintenance is scheduled for tonight at 12:00 AM.',
|
||||
'group' => 'control_center',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
52 =>
|
||||
array (
|
||||
'id' => 61,
|
||||
'key' => 'announcement_type',
|
||||
'value' => 'info',
|
||||
'group' => 'control_center',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
53 =>
|
||||
array (
|
||||
'id' => 62,
|
||||
'key' => 'onboarding_version',
|
||||
'value' => '1.0.0',
|
||||
'group' => 'app_updates',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
54 =>
|
||||
array (
|
||||
'id' => 63,
|
||||
'key' => 'store_url_huawei',
|
||||
'value' => 'https://appgallery.huawei.com/',
|
||||
'group' => 'app_updates',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
55 =>
|
||||
array (
|
||||
'id' => 64,
|
||||
'key' => 'review_prompt_enabled',
|
||||
'value' => 'true',
|
||||
'group' => 'features',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
56 =>
|
||||
array (
|
||||
'id' => 65,
|
||||
'key' => 'min_actions_before_review',
|
||||
'value' => '10',
|
||||
'group' => 'features',
|
||||
'type' => 'integer',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
57 =>
|
||||
array (
|
||||
'id' => 66,
|
||||
'key' => 'dashboard_categories',
|
||||
'value' => 'All,Tech,Finance,Health,Coding',
|
||||
'group' => 'features',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
58 =>
|
||||
array (
|
||||
'id' => 67,
|
||||
'key' => 'login_title',
|
||||
'value' => 'biiproject',
|
||||
'group' => 'security_auth',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
59 =>
|
||||
array (
|
||||
'id' => 56,
|
||||
'key' => 'kill_switch_message',
|
||||
'value' => '<p>System is currently undergoing emergency maintenance. Please try again laters</p>',
|
||||
'group' => 'control_center',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:16:11',
|
||||
),
|
||||
60 =>
|
||||
array (
|
||||
'id' => 18,
|
||||
'key' => 'api_base_url',
|
||||
'value' => 'http://192.168.81.59:8000',
|
||||
'group' => 'network',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-13 16:23:15',
|
||||
),
|
||||
61 =>
|
||||
array (
|
||||
'id' => 14,
|
||||
'key' => 'kill_switch_active',
|
||||
'value' => 'false',
|
||||
'group' => 'flags',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-14 11:23:15',
|
||||
),
|
||||
62 =>
|
||||
array (
|
||||
'id' => 68,
|
||||
'key' => 'login_subtitle',
|
||||
'value' => 'Sign in to continue',
|
||||
'group' => 'security_auth',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
63 =>
|
||||
array (
|
||||
'id' => 27,
|
||||
'key' => 'biometric_auth_type',
|
||||
'value' => 'any',
|
||||
'group' => 'auth',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
64 =>
|
||||
array (
|
||||
'id' => 69,
|
||||
'key' => 'ssl_pinning_hash',
|
||||
'value' => NULL,
|
||||
'group' => 'connectivity',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
65 =>
|
||||
array (
|
||||
'id' => 49,
|
||||
'key' => 'live_chat_url',
|
||||
'value' => NULL,
|
||||
'group' => 'support',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
66 =>
|
||||
array (
|
||||
'id' => 50,
|
||||
'key' => 'faq_url',
|
||||
'value' => NULL,
|
||||
'group' => 'support',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
67 =>
|
||||
array (
|
||||
'id' => 45,
|
||||
'key' => 'social_instagram_url',
|
||||
'value' => NULL,
|
||||
'group' => 'support',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
68 =>
|
||||
array (
|
||||
'id' => 46,
|
||||
'key' => 'social_twitter_url',
|
||||
'value' => NULL,
|
||||
'group' => 'support',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
69 =>
|
||||
array (
|
||||
'id' => 70,
|
||||
'key' => 'social_facebook_url',
|
||||
'value' => NULL,
|
||||
'group' => 'support_social',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
70 =>
|
||||
array (
|
||||
'id' => 71,
|
||||
'key' => 'social_youtube_url',
|
||||
'value' => NULL,
|
||||
'group' => 'support_social',
|
||||
'type' => 'string',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
71 =>
|
||||
array (
|
||||
'id' => 72,
|
||||
'key' => 'faq_json',
|
||||
'value' => '[{"q":"How to sync?","a":"Click the sync button on dashboard."}]',
|
||||
'group' => 'support_social',
|
||||
'type' => 'json',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
72 =>
|
||||
array (
|
||||
'id' => 73,
|
||||
'key' => 'help_topics_json',
|
||||
'value' => '[{"id":"1","name":"Account","icon":"user"},{"id":"2","name":"System","icon":"cpu"}]',
|
||||
'group' => 'support_social',
|
||||
'type' => 'json',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
73 =>
|
||||
array (
|
||||
'id' => 74,
|
||||
'key' => 'announcement_enabled',
|
||||
'value' => 'false',
|
||||
'group' => 'control_center',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
74 =>
|
||||
array (
|
||||
'id' => 75,
|
||||
'key' => 'enable_guest_mode',
|
||||
'value' => 'false',
|
||||
'group' => 'features',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
75 =>
|
||||
array (
|
||||
'id' => 76,
|
||||
'key' => 'oauth_facebook_enabled',
|
||||
'value' => 'false',
|
||||
'group' => 'security_auth',
|
||||
'type' => 'boolean',
|
||||
'created_at' => '2026-05-12 22:15:47',
|
||||
'updated_at' => '2026-05-12 22:15:47',
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ModelHasPermissionsTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('model_has_permissions')->delete();
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class ModelHasRolesTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('model_has_roles')->delete();
|
||||
|
||||
\DB::table('model_has_roles')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'role_id' => 2,
|
||||
'model_type' => 'App\\Models\\User',
|
||||
'model_id' => 1,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'role_id' => 1,
|
||||
'model_type' => 'App\\Models\\User',
|
||||
'model_id' => 2,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'role_id' => 3,
|
||||
'model_type' => 'App\\Models\\User',
|
||||
'model_id' => 3,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'role_id' => 1,
|
||||
'model_type' => 'App\\Models\\User',
|
||||
'model_id' => 5,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,144 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
use Spatie\Permission\Models\Permission;
|
||||
use Spatie\Permission\Models\Role;
|
||||
use Spatie\Permission\PermissionRegistrar;
|
||||
|
||||
class RoleAndPermissionSeeder extends Seeder
|
||||
{
|
||||
public function run(): void
|
||||
{
|
||||
app()[PermissionRegistrar::class]->forgetCachedPermissions();
|
||||
|
||||
// ── MENU-LEVEL PERMISSIONS (scope = null) ─────────────────────────────
|
||||
$menuPermissions = [
|
||||
'view dashboard',
|
||||
'view user directory', 'manage user directory',
|
||||
'impersonate users',
|
||||
'view access rights', 'manage access rights',
|
||||
'view health and logs', 'manage health and logs',
|
||||
'view system health', 'manage system health',
|
||||
'view action history', 'manage action history',
|
||||
'view pulse', 'view telescope', 'view api docs',
|
||||
'view active sessions', 'manage active sessions',
|
||||
'view global settings', 'manage global settings',
|
||||
'view maintenance mode', 'manage maintenance mode',
|
||||
'view backup and storage', 'manage backup and storage',
|
||||
'view mobile settings', 'manage mobile settings',
|
||||
'view notification center', 'manage notification center',
|
||||
'view ai self-healing', 'manage ai self-healing',
|
||||
'view ai log analysis', 'use ai assistant',
|
||||
];
|
||||
|
||||
foreach ($menuPermissions as $name) {
|
||||
Permission::firstOrCreate(
|
||||
['name' => $name, 'guard_name' => 'web'],
|
||||
['scope' => null, 'is_active' => true]
|
||||
);
|
||||
}
|
||||
|
||||
// ── TAB-LEVEL PERMISSIONS [name, scope] ───────────────────────────────
|
||||
$tabPermissions = [
|
||||
// Global Settings
|
||||
['view global settings:general', 'general'],
|
||||
['manage global settings:general', 'general'],
|
||||
['view global settings:login-security', 'login-security'],
|
||||
['manage global settings:login-security', 'login-security'],
|
||||
['view global settings:password-policy', 'password-policy'],
|
||||
['manage global settings:password-policy', 'password-policy'],
|
||||
['view global settings:social-login', 'social-login'],
|
||||
['manage global settings:social-login', 'social-login'],
|
||||
['view global settings:ip-access', 'ip-access'],
|
||||
['manage global settings:ip-access', 'ip-access'],
|
||||
['view global settings:notifications', 'notifications'],
|
||||
['manage global settings:notifications', 'notifications'],
|
||||
['view global settings:content-legal', 'content-legal'],
|
||||
['manage global settings:content-legal', 'content-legal'],
|
||||
['view global settings:ai-config', 'ai-config'],
|
||||
['manage global settings:ai-config', 'ai-config'],
|
||||
['view global settings:sap-integration', 'sap-integration'],
|
||||
['manage global settings:sap-integration', 'sap-integration'],
|
||||
['view global settings:monitoring', 'monitoring'],
|
||||
['manage global settings:monitoring', 'monitoring'],
|
||||
// Mobile Settings
|
||||
['view mobile settings:branding', 'branding'],
|
||||
['manage mobile settings:branding', 'branding'],
|
||||
['view mobile settings:control-center', 'control-center'],
|
||||
['manage mobile settings:control-center', 'control-center'],
|
||||
['view mobile settings:app-updates', 'app-updates'],
|
||||
['manage mobile settings:app-updates', 'app-updates'],
|
||||
['view mobile settings:features', 'features'],
|
||||
['manage mobile settings:features', 'features'],
|
||||
['view mobile settings:security-auth', 'security-auth'],
|
||||
['manage mobile settings:security-auth', 'security-auth'],
|
||||
['view mobile settings:connectivity', 'connectivity'],
|
||||
['manage mobile settings:connectivity', 'connectivity'],
|
||||
['view mobile settings:notifications', 'notifications'],
|
||||
['manage mobile settings:notifications', 'notifications'],
|
||||
['view mobile settings:support-social', 'support-social'],
|
||||
['manage mobile settings:support-social', 'support-social'],
|
||||
['view mobile settings:analytics-system', 'analytics-system'],
|
||||
['manage mobile settings:analytics-system','analytics-system'],
|
||||
['view mobile settings:localization', 'localization'],
|
||||
['manage mobile settings:localization', 'localization'],
|
||||
['view mobile settings:developer', 'developer'],
|
||||
['manage mobile settings:developer', 'developer'],
|
||||
// Health & Logs
|
||||
['view health and logs:system-monitor', 'system-monitor'],
|
||||
['manage health and logs:system-monitor', 'system-monitor'],
|
||||
['view health and logs:ai-log-analysis', 'ai-log-analysis'],
|
||||
['view health and logs:error-logs', 'error-logs'],
|
||||
['manage health and logs:error-logs', 'error-logs'],
|
||||
['view health and logs:query-logs', 'query-logs'],
|
||||
['manage health and logs:query-logs', 'query-logs'],
|
||||
// Action History
|
||||
['view action history:all', 'all'],
|
||||
['view action history:own', 'own'],
|
||||
['export action history', null],
|
||||
// Active Sessions
|
||||
['view active sessions:all', 'all'],
|
||||
['view active sessions:own', 'own'],
|
||||
];
|
||||
|
||||
foreach ($tabPermissions as [$name, $scope]) {
|
||||
Permission::firstOrCreate(
|
||||
['name' => $name, 'guard_name' => 'web'],
|
||||
['scope' => $scope, 'is_active' => true]
|
||||
);
|
||||
}
|
||||
|
||||
// ── ROLES ─────────────────────────────────────────────────────────────
|
||||
$developer = Role::findOrCreate('Developer', 'web');
|
||||
$developer->syncPermissions(Permission::where('guard_name', 'web')->get());
|
||||
|
||||
$globalTabPerms = array_column(
|
||||
array_filter($tabPermissions, fn ($p) => str_contains($p[0], 'global settings:')), 0
|
||||
);
|
||||
$mobileTabPerms = array_column(
|
||||
array_filter($tabPermissions, fn ($p) => str_contains($p[0], 'mobile settings:')), 0
|
||||
);
|
||||
$healthTabPerms = array_column(
|
||||
array_filter($tabPermissions, fn ($p) => str_contains($p[0], 'health and logs:')), 0
|
||||
);
|
||||
|
||||
$administrator = Role::findOrCreate('Administrator', 'web');
|
||||
$administrator->syncPermissions(array_merge([
|
||||
'view dashboard',
|
||||
'view user directory', 'manage user directory',
|
||||
'impersonate users',
|
||||
'view mobile settings', 'manage mobile settings',
|
||||
'view notification center', 'manage notification center',
|
||||
'view global settings', 'manage global settings',
|
||||
'view health and logs', 'manage health and logs',
|
||||
'view action history', 'manage action history',
|
||||
'export action history',
|
||||
'view active sessions', 'manage active sessions',
|
||||
], $globalTabPerms, $mobileTabPerms, $healthTabPerms));
|
||||
|
||||
$user = Role::findOrCreate('User', 'web');
|
||||
$user->syncPermissions(['view dashboard', 'view notification center']);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,211 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class RoleHasPermissionsTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('role_has_permissions')->delete();
|
||||
|
||||
\DB::table('role_has_permissions')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'permission_id' => 1,
|
||||
'role_id' => 1,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'permission_id' => 2,
|
||||
'role_id' => 1,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'permission_id' => 3,
|
||||
'role_id' => 1,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'permission_id' => 4,
|
||||
'role_id' => 1,
|
||||
),
|
||||
4 =>
|
||||
array (
|
||||
'permission_id' => 5,
|
||||
'role_id' => 1,
|
||||
),
|
||||
5 =>
|
||||
array (
|
||||
'permission_id' => 6,
|
||||
'role_id' => 1,
|
||||
),
|
||||
6 =>
|
||||
array (
|
||||
'permission_id' => 7,
|
||||
'role_id' => 1,
|
||||
),
|
||||
7 =>
|
||||
array (
|
||||
'permission_id' => 8,
|
||||
'role_id' => 1,
|
||||
),
|
||||
8 =>
|
||||
array (
|
||||
'permission_id' => 9,
|
||||
'role_id' => 1,
|
||||
),
|
||||
9 =>
|
||||
array (
|
||||
'permission_id' => 10,
|
||||
'role_id' => 1,
|
||||
),
|
||||
10 =>
|
||||
array (
|
||||
'permission_id' => 11,
|
||||
'role_id' => 1,
|
||||
),
|
||||
11 =>
|
||||
array (
|
||||
'permission_id' => 12,
|
||||
'role_id' => 1,
|
||||
),
|
||||
12 =>
|
||||
array (
|
||||
'permission_id' => 13,
|
||||
'role_id' => 1,
|
||||
),
|
||||
13 =>
|
||||
array (
|
||||
'permission_id' => 14,
|
||||
'role_id' => 1,
|
||||
),
|
||||
14 =>
|
||||
array (
|
||||
'permission_id' => 15,
|
||||
'role_id' => 1,
|
||||
),
|
||||
15 =>
|
||||
array (
|
||||
'permission_id' => 16,
|
||||
'role_id' => 1,
|
||||
),
|
||||
16 =>
|
||||
array (
|
||||
'permission_id' => 17,
|
||||
'role_id' => 1,
|
||||
),
|
||||
17 =>
|
||||
array (
|
||||
'permission_id' => 18,
|
||||
'role_id' => 1,
|
||||
),
|
||||
18 =>
|
||||
array (
|
||||
'permission_id' => 19,
|
||||
'role_id' => 1,
|
||||
),
|
||||
19 =>
|
||||
array (
|
||||
'permission_id' => 20,
|
||||
'role_id' => 1,
|
||||
),
|
||||
20 =>
|
||||
array (
|
||||
'permission_id' => 21,
|
||||
'role_id' => 1,
|
||||
),
|
||||
21 =>
|
||||
array (
|
||||
'permission_id' => 22,
|
||||
'role_id' => 1,
|
||||
),
|
||||
22 =>
|
||||
array (
|
||||
'permission_id' => 23,
|
||||
'role_id' => 1,
|
||||
),
|
||||
23 =>
|
||||
array (
|
||||
'permission_id' => 24,
|
||||
'role_id' => 1,
|
||||
),
|
||||
24 =>
|
||||
array (
|
||||
'permission_id' => 25,
|
||||
'role_id' => 1,
|
||||
),
|
||||
25 =>
|
||||
array (
|
||||
'permission_id' => 26,
|
||||
'role_id' => 1,
|
||||
),
|
||||
26 =>
|
||||
array (
|
||||
'permission_id' => 27,
|
||||
'role_id' => 1,
|
||||
),
|
||||
27 =>
|
||||
array (
|
||||
'permission_id' => 1,
|
||||
'role_id' => 3,
|
||||
),
|
||||
28 =>
|
||||
array (
|
||||
'permission_id' => 26,
|
||||
'role_id' => 3,
|
||||
),
|
||||
29 =>
|
||||
array (
|
||||
'permission_id' => 1,
|
||||
'role_id' => 2,
|
||||
),
|
||||
30 =>
|
||||
array (
|
||||
'permission_id' => 2,
|
||||
'role_id' => 2,
|
||||
),
|
||||
31 =>
|
||||
array (
|
||||
'permission_id' => 3,
|
||||
'role_id' => 2,
|
||||
),
|
||||
32 =>
|
||||
array (
|
||||
'permission_id' => 4,
|
||||
'role_id' => 2,
|
||||
),
|
||||
33 =>
|
||||
array (
|
||||
'permission_id' => 5,
|
||||
'role_id' => 2,
|
||||
),
|
||||
34 =>
|
||||
array (
|
||||
'permission_id' => 6,
|
||||
'role_id' => 2,
|
||||
),
|
||||
35 =>
|
||||
array (
|
||||
'permission_id' => 26,
|
||||
'role_id' => 2,
|
||||
),
|
||||
36 =>
|
||||
array (
|
||||
'permission_id' => 27,
|
||||
'role_id' => 2,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class RolesTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('roles')->delete();
|
||||
|
||||
\DB::table('roles')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'name' => 'Developer',
|
||||
'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,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'name' => 'User',
|
||||
'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,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'name' => 'Administrator',
|
||||
'guard_name' => 'web',
|
||||
'created_at' => '2026-05-12 22:01:13',
|
||||
'updated_at' => '2026-05-12 22:02:18',
|
||||
'created_by' => NULL,
|
||||
'updated_by' => 2,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,114 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class UsersTableSeeder extends Seeder
|
||||
{
|
||||
|
||||
/**
|
||||
* Auto generated seed file
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
|
||||
|
||||
\DB::table('users')->delete();
|
||||
|
||||
\DB::table('users')->insert(array (
|
||||
0 =>
|
||||
array (
|
||||
'id' => 1,
|
||||
'name' => 'Admin',
|
||||
'email' => 'admin@biiproject.com',
|
||||
'email_verified_at' => '2026-05-12 22:01:14',
|
||||
'password' => '$2y$12$b3xJdw.sj00MbqWychUNEuOS/ZYL8Hp8suXrtAsBIW6bmzqTBQZES',
|
||||
'remember_token' => NULL,
|
||||
'created_at' => '2026-05-12 22:01:14',
|
||||
'updated_at' => '2026-05-12 22:01:14',
|
||||
'password_changed_at' => NULL,
|
||||
'username' => NULL,
|
||||
'phone_number' => NULL,
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
'last_session_id' => NULL,
|
||||
'google_id' => NULL,
|
||||
'facebook_id' => NULL,
|
||||
'github_id' => NULL,
|
||||
),
|
||||
1 =>
|
||||
array (
|
||||
'id' => 3,
|
||||
'name' => 'User',
|
||||
'email' => 'user@biiproject.com',
|
||||
'email_verified_at' => '2026-05-12 22:01:15',
|
||||
'password' => '$2y$12$bKXz5NL0DE5P0HLbooNQU.sLWt21qAD08Pw.m75pX3i69xvgbxhRu',
|
||||
'remember_token' => NULL,
|
||||
'created_at' => '2026-05-12 22:01:15',
|
||||
'updated_at' => '2026-05-13 16:08:00',
|
||||
'password_changed_at' => NULL,
|
||||
'username' => NULL,
|
||||
'phone_number' => NULL,
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
'last_session_id' => NULL,
|
||||
'google_id' => NULL,
|
||||
'facebook_id' => NULL,
|
||||
'github_id' => NULL,
|
||||
),
|
||||
2 =>
|
||||
array (
|
||||
'id' => 2,
|
||||
'name' => 'Developer',
|
||||
'email' => 'developer@biiproject.com',
|
||||
'email_verified_at' => '2026-05-12 22:01:15',
|
||||
'password' => '$2y$12$6O6erPgiw75ivUASdm95tOEHBG4bCnRjxIygFHH3IPf4EJkVokqrK',
|
||||
'remember_token' => NULL,
|
||||
'created_at' => '2026-05-12 22:01:15',
|
||||
'updated_at' => '2026-05-14 22:57:49',
|
||||
'password_changed_at' => NULL,
|
||||
'username' => NULL,
|
||||
'phone_number' => NULL,
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
'last_session_id' => 'AFghrj0VNIgvVm1q5pJn0U1x0TnJwX30srp3yKp9',
|
||||
'google_id' => NULL,
|
||||
'facebook_id' => NULL,
|
||||
'github_id' => NULL,
|
||||
),
|
||||
3 =>
|
||||
array (
|
||||
'id' => 5,
|
||||
'name' => 'Debe',
|
||||
'email' => 'debesocial@gmail.com',
|
||||
'email_verified_at' => '2026-05-14 23:20:40',
|
||||
'password' => '$2y$12$LQ1wN1Ws28SmKvZuSG.JdOHBp5FscKsKrXy3V5pO5zPDnBymU2Yku',
|
||||
'remember_token' => 'Bp4HtFWjgAL4Xt9oBqxrCMfE8zQjDBD7ErGwvHDIY3nKNOPdtItItfsyrVkt',
|
||||
'created_at' => '2026-05-14 23:20:23',
|
||||
'updated_at' => '2026-05-14 23:22:44',
|
||||
'password_changed_at' => '2026-05-14 23:20:40',
|
||||
'username' => 'Debe',
|
||||
'phone_number' => NULL,
|
||||
'created_by' => NULL,
|
||||
'updated_by' => NULL,
|
||||
'deleted_at' => NULL,
|
||||
'is_active' => true,
|
||||
'last_session_id' => NULL,
|
||||
'google_id' => NULL,
|
||||
'facebook_id' => NULL,
|
||||
'github_id' => NULL,
|
||||
),
|
||||
));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user