mirror of
https://github.com/Bubka/2FAuth.git
synced 2024-12-29 18:39:30 +01:00
23 lines
379 B
PHP
23 lines
379 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Closure;
|
|
|
|
class SetLanguage
|
|
{
|
|
/**
|
|
* Handle an incoming request.
|
|
*
|
|
* @param \Illuminate\Http\Request $request
|
|
* @param \Closure $next
|
|
* @return mixed
|
|
*/
|
|
public function handle($request, Closure $next)
|
|
{
|
|
\App::setLocale(option('lang', 'en'));
|
|
|
|
return $next($request);
|
|
}
|
|
}
|