route('room'); $player = $this->route('player'); return $room instanceof Room && $player instanceof Player && $this->user()?->id === $room->owner_id && $player->room_id === $room->id && $player->user_id !== $room->owner_id; } /** * Get the validation rules that apply to the request. * * @return array> */ public function rules(): array { return []; } }