mirror of
https://github.com/brunofontes/shareit.git
synced 2024-11-28 05:41:27 +00:00
22 lines
368 B
PHP
22 lines
368 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Middleware;
|
||
|
|
||
|
use Closure;
|
||
|
|
||
|
class Locale
|
||
|
{
|
||
|
/**
|
||
|
* Handle an incoming request.
|
||
|
*
|
||
|
* @param \Illuminate\Http\Request $request
|
||
|
* @param \Closure $next
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function handle($request, Closure $next)
|
||
|
{
|
||
|
\App::setLocale(session('lang'));
|
||
|
return $next($request);
|
||
|
}
|
||
|
}
|