route()->parameters, 'pid') ?? $request->input('pid'); if ($pid && ($player = Player::find($pid)) && $player->uid != auth()->id()) { return json(trans('admin.players.no-permission'), 1); } return $next($request); } }