28 lines
576 B
PHP
28 lines
576 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Middleware;
|
||
|
|
||
|
use App\Models\Tenant;
|
||
|
use Closure;
|
||
|
use Illuminate\Support\Facades\Auth;
|
||
|
use Illuminate\Support\Facades\Log;
|
||
|
|
||
|
class TenanMiddleware
|
||
|
{
|
||
|
/**
|
||
|
* Handle an incoming request.
|
||
|
*
|
||
|
* @param \Illuminate\Http\Request $request
|
||
|
* @param \Closure $next
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function handle($request, Closure $next)
|
||
|
{
|
||
|
|
||
|
Log::info("Request Start", ["time" => microtime(true)]);
|
||
|
$r = $next($request);
|
||
|
Log::info("Request end", ["time" => microtime(true)]);
|
||
|
return $r;
|
||
|
}
|
||
|
}
|