uawdijnntqw1x1x1
IP : 18.119.28.173
Hostname : host45.registrar-servers.com
Kernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
home
/
jackpotjunglegam
/
public_html
/
80d3f
/
.
/
..
/
core
/
app
/
Http
/
Middleware
/
LanguageMiddleware.php
/
/
<?php namespace App\Http\Middleware; use App\Models\Language; use Closure; class LanguageMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { session()->put('lang', $this->getCode()); app()->setLocale(session('lang', $this->getCode())); return $next($request); } public function getCode() { if (session()->has('lang')) { return session('lang'); } $language = Language::where('is_default', 1)->first(); return $language ? $language->code : 'en'; } }
/home/jackpotjunglegam/public_html/80d3f/./../core/app/Http/Middleware/LanguageMiddleware.php