<?php
/*
 本代码由 口号帮 创建
 创建时间 2019-05-08 16:22:09
 技术支持 口号帮 
 严禁反编译、逆向等任何形式的侵权行为，违者将追究法律责任
*/

namespace App\Http\Middleware;use Closure;class OperateLog{public function handle($request,Closure $next){$P2gAC0=array();if(auth()->user())goto P2gBodyx2;goto P2gNextx2;P2gBodyx2:$P2g0=auth()->user()->id;goto P2gx1;P2gNextx2:$P2g0=0;P2gx1:$P2gAC0['user_id']=$P2g0;$P2gAC0['path']=$request->path();$P2gAC0['method']=$request->method();$P2gAC0['ip']=$request->ip();$P2gAC0['input']=json_encode($request->all(),JSON_UNESCAPED_UNICODE);$data=$P2gAC0;\App\Models\OperateLog::create($data);return $next($request);}}
?>