108 lines
3.4 KiB
PHP
108 lines
3.4 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\OsurgInitial;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class OsurgInitialSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
$initials = [
|
|
[
|
|
'init_parameter' => 'login_bg.png',
|
|
'init_value' => null,
|
|
'attachment' => 'initials/login_bg.png',
|
|
],
|
|
[
|
|
'init_parameter' => 'list_bg.png',
|
|
'init_value' => null,
|
|
'attachment' => 'initials/list_bg.png',
|
|
],
|
|
[
|
|
'init_parameter' => 'listlogo_per.png',
|
|
'init_value' => null,
|
|
'attachment' => 'initials/listlogo_per.png',
|
|
],
|
|
[
|
|
'init_parameter' => 'listlogo_eng.png',
|
|
'init_value' => null,
|
|
'attachment' => 'initials/listlogo_eng.png',
|
|
],
|
|
[
|
|
'init_parameter' => 'loginlogo_per.png',
|
|
'init_value' => null,
|
|
'attachment' => 'initials/loginlogo_per.png',
|
|
],
|
|
[
|
|
'init_parameter' => 'loginlogo_eng.png',
|
|
'init_value' => null,
|
|
'attachment' => 'initials/loginlogo_eng.png',
|
|
],
|
|
[
|
|
'init_parameter' => 'sync_peer_ip',
|
|
'init_value' => '192.168.1.XX',
|
|
'attachment' => null,
|
|
],
|
|
[
|
|
'init_parameter' => 'sync_peer_port',
|
|
'init_value' => '8000',
|
|
'attachment' => null,
|
|
],
|
|
[
|
|
'init_parameter' => 'sync_token',
|
|
'init_value' => 'change-this-to-a-secret-token',
|
|
'attachment' => null,
|
|
],
|
|
[
|
|
'init_parameter' => 'sms_api_url',
|
|
'init_value' => 'http://94.101.184.91/api/sms',
|
|
'attachment' => null,
|
|
],
|
|
[
|
|
'init_parameter' => 'sms_api_key',
|
|
'init_value' => 'surgery-sms-2024',
|
|
'attachment' => null,
|
|
],
|
|
[
|
|
'init_parameter' => 'ftp_user',
|
|
'init_value' => 'root',
|
|
'attachment' => null,
|
|
],
|
|
[
|
|
'init_parameter' => 'ftp_pass',
|
|
'init_value' => 'Mjoshanitcm7717',
|
|
'attachment' => null,
|
|
],
|
|
[
|
|
'init_parameter' => 'ftp_port',
|
|
'init_value' => '2121',
|
|
'attachment' => null,
|
|
],
|
|
[
|
|
'init_parameter' => 'ftp_remote_path',
|
|
'init_value' => '/',
|
|
'attachment' => null,
|
|
],
|
|
[
|
|
'init_parameter' => 'sync_peer_cursor',
|
|
'init_value' => null,
|
|
'attachment' => null,
|
|
],
|
|
[
|
|
'init_parameter' => 'our_sync_cursor',
|
|
'init_value' => null,
|
|
'attachment' => null,
|
|
],
|
|
];
|
|
|
|
foreach ($initials as $item) {
|
|
OsurgInitial::firstOrCreate(
|
|
['init_parameter' => $item['init_parameter']],
|
|
$item
|
|
);
|
|
}
|
|
}
|
|
}
|