1234567891011121314151617181920212223 |
- <?php
- namespace App\Http\Middleware;
- use App\Servers\AdminLogsServer;
- use Closure;
- class AdminLogMiddleware
- {
- /**
- * Handle an incoming request.
- *
- * @param \Illuminate\Http\Request $request
- * @param \Closure $next
- * @return mixed
- */
- public function handle($request, Closure $next)
- {
- //记录访问日志
- AdminLogsServer::write();
- return $next($request);
- }
- }
|