27 lines
509 B
PHP
27 lines
509 B
PHP
<?php
|
|
|
|
namespace App\Http\Middleware;
|
|
|
|
use Closure;
|
|
|
|
class LDCNetwork
|
|
{
|
|
/**
|
|
* Handle an incoming request.
|
|
*
|
|
* @param mixed $request
|
|
* @param \Closure $next
|
|
* @return mixed
|
|
*/
|
|
public function handle($request, Closure $next)
|
|
{
|
|
/**
|
|
* IpUtils::checkIp();
|
|
*/
|
|
|
|
// * https://github.com/symfony/http-foundation/blob/master/IpUtils.php#L36 .
|
|
|
|
/** @var \Illuminate\Http\Request $request */
|
|
return $next($request);
|
|
}
|
|
}
|