feat: initial project setup with Laravel 12 and Filament v4

This commit is contained in:
SajjadMahmoody
2026-04-03 17:25:17 +03:30
parent eca5d74b36
commit 09ee1cb743
324 changed files with 78304 additions and 23 deletions
+97
View File
@@ -0,0 +1,97 @@
<?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' => 'C:/wamp64/www/matab-panel/storage/app/public',
'attachment' => null,
],
];
foreach ($initials as $item) {
OsurgInitial::firstOrCreate(
['init_parameter' => $item['init_parameter']],
$item
);
}
}
}