input('pid')) { $player = Player::find($pid); if ($player->uid != auth()->id()) { return response()->json([ 'errno' => 1, 'msg' => trans('admin.players.no-permission') ]); } } return $next($request); } }