isJson()) { $data = $this->json()->all(); if (isset($data['action']) && is_string($data['action'])) { return $data['action']; } if (isset($data['type']) && is_array($data['type'])) { $type = current($data['type']); if (is_string($type) && str_starts_with($type, 'h-')) { return substr($type, 2); } return null; } return 'entry'; } if ($this->filled('action')) { return $this->input('action'); } return $this->input('h') ?: 'entry'; } }