mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-11-23 16:53:26 +01:00
24 lines
433 B
PHP
24 lines
433 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Closure;
|
|
use Facades\App\Services\SettingService;
|
|
|
|
class SetLanguage
|
|
{
|
|
/**
|
|
* Handle an incoming request.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @param \Closure $next
|
|
* @return mixed
|
|
*/
|
|
public function handle($request, Closure $next)
|
|
{
|
|
\App::setLocale(SettingService::get('lang', 'en'));
|
|
|
|
return $next($request);
|
|
}
|
|
}
|