Linux spg1.cloudpowerdns.com 5.14.0-611.34.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 18 05:51:10 EST 2026 x86_64
LiteSpeed
Server IP : 176.9.63.151 & Your IP : 216.73.217.60
Domains :
Cant Read [ /etc/named.conf ]
User : fastear1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
fastear1 /
dailyprofit.return /
app /
Models /
Delete
Unzip
Name
Size
Permission
Date
Action
Admin.php
608
B
-rw-r--r--
2023-07-25 13:22
Blog.php
518
B
-rw-r--r--
2023-07-25 13:22
CustomCss.php
267
B
-rw-r--r--
2023-07-25 23:21
DepositMethod.php
757
B
-rw-r--r--
2023-07-25 23:21
EmailTemplate.php
218
B
-rw-r--r--
2023-07-16 12:56
Gateway.php
444
B
-rw-r--r--
2023-07-25 23:21
Invest.php
1.45
KB
-rw-r--r--
2023-07-25 23:21
Kyc.php
208
B
-rw-r--r--
2023-07-16 12:56
LandingContent.php
219
B
-rw-r--r--
2023-07-31 14:10
LandingPage.php
216
B
-rw-r--r--
2023-07-16 12:56
Language.php
213
B
-rw-r--r--
2023-07-16 12:56
LevelReferral.php
231
B
-rw-r--r--
2023-07-25 13:22
LogActivity.php
337
B
-rw-r--r--
2023-07-25 13:22
LoginActivities.php
1.01
KB
-rw-r--r--
2023-07-25 23:21
Message.php
461
B
-rw-r--r--
2023-07-25 13:22
Navigation.php
597
B
-rw-r--r--
2023-07-31 00:09
Notification.php
308
B
-rw-r--r--
2023-07-25 13:22
Page.php
209
B
-rw-r--r--
2023-07-19 23:53
PageSetting.php
216
B
-rw-r--r--
2023-07-16 12:56
Plugin.php
211
B
-rw-r--r--
2023-07-16 12:56
PushNotificationTemplate.php
242
B
-rw-r--r--
2023-07-25 13:22
Ranking.php
212
B
-rw-r--r--
2023-07-16 12:56
Referral.php
439
B
-rw-r--r--
2023-07-16 12:56
ReferralLink.php
1.3
KB
-rw-r--r--
2023-07-25 23:21
ReferralProgram.php
250
B
-rw-r--r--
2023-07-16 12:56
ReferralRelationship.php
251
B
-rw-r--r--
2023-07-16 12:56
ReferralTarget.php
219
B
-rw-r--r--
2023-07-16 12:56
Schedule.php
213
B
-rw-r--r--
2023-07-16 12:56
ScheduledTask.php
195
B
-rw-r--r--
2023-07-25 23:21
Schema.php
928
B
-rw-r--r--
2023-07-31 01:08
SetTune.php
189
B
-rw-r--r--
2023-07-25 13:22
Setting.php
4.79
KB
-rw-r--r--
2023-07-25 23:21
SmsTemplate.php
334
B
-rw-r--r--
2023-07-25 13:22
Social.php
211
B
-rw-r--r--
2023-07-16 12:56
Subscription.php
385
B
-rw-r--r--
2023-07-16 12:56
Theme.php
427
B
-rw-r--r--
2023-07-25 13:22
Ticket.php
795
B
-rw-r--r--
2023-07-25 13:22
Transaction.php
3.9
KB
-rw-r--r--
2023-07-31 16:13
User.php
6.89
KB
-rw-r--r--
2023-07-31 00:09
WithdrawAccount.php
420
B
-rw-r--r--
2023-07-16 12:56
WithdrawMethod.php
394
B
-rw-r--r--
2023-07-25 13:22
WithdrawalSchedule.php
275
B
-rw-r--r--
2023-07-25 13:22
Save
Rename
<?php namespace App\Models; use Cache; use Illuminate\Database\Eloquent\Factories\HasFactory; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Collection; class Setting extends Model { use HasFactory; /** * The attributes that aren't mass assignable. * * @var array */ protected $guarded = []; /** * Add a settings value * * @param string $type * @return bool */ public static function add($key, $val, $type = 'string') { if (self::has($key)) { return self::set($key, $val, $type); } return self::create(['name' => $key, 'val' => $val, 'type' => $type]) ? $val : false; } /** * Check if setting exists * * @return bool */ public static function has($key) { return (bool) self::getAllSettings()->whereStrict('name', $key)->count(); } /** * Get all the settings * * @return mixed */ public static function getAllSettings() { return Cache::rememberForever('settings.all', function () { return self::all(); }); } /** * Set a value for setting * * @param string $type * @return bool */ public static function set($key, $val, $type = 'string') { if ($setting = self::getAllSettings()->where('name', $key)->first()) { return $setting->update([ 'name' => $key, 'val' => $val, 'type' => $type]) ? $val : false; } return self::add($key, $val, $type); } /** * Remove a setting * * @return bool */ public static function remove($key) { if (self::has($key)) { return self::whereName($key)->delete(); } return false; } /** * Get the validation rules for setting fields * * @return array ;; */ public static function getValidationRules($section) { return self::getDefinedSettingFields($section)->pluck('rules', 'name') ->reject(function ($val) { return is_null($val); })->toArray(); } /** * Get all the settings fields from config ;; * * @return Collection */ private static function getDefinedSettingFields($section) { return collect(config('setting')[$section]['elements']); } /** * Get the data type of a setting * * @return mixed ;; */ public static function getDataType($field, $section) { $type = self::getDefinedSettingFields($section) ->pluck('data', 'name') ->get($field); return is_null($type) ? 'string' : $type; } /** * Get a settings value * * @param null $default * @return bool|int|mixed */ public static function get($key, $section = null, $default = null) { if (self::has($key)) { $setting = self::getAllSettings()->where('name', $key)->first(); return self::castValue($setting->val, $setting->type); } return self::getDefaultValue($key, $section, $default); } /** * caste value into respective type * * @return bool|int */ private static function castValue($val, $castTo) { switch ($castTo) { case 'int': case 'integer': return intval($val); break; case 'bool': case 'boolean': return boolval($val); break; default: return $val; } } /** * Get default value from config if no value passed * * @return mixed */ private static function getDefaultValue($key, $section, $default) { return is_null($default) ? self::getDefaultValueForField($key, $section) : $default; } /** * Get default value for a setting * * @return mixed */ public static function getDefaultValueForField($field, $section) { return self::getDefinedSettingFields($section) ->pluck('value', 'name') ->get($field); } /** * The "booting" account of the model. * * @return void */ protected static function boot() { parent::boot(); static::updated(function () { self::flushCache(); }); static::created(function () { self::flushCache(); }); } /** * Flush the cache */ public static function flushCache() { Cache::forget('settings.all'); } }