filamentphp/filament · error · LogicException

No function was passed to [authorizeIndividualRecords()].

Error message

No function was passed to [authorizeIndividualRecords()].

What it means

Error "No function was passed to [authorizeIndividualRecords()]." thrown in filamentphp/filament.

Source

Thrown at packages/actions/src/Concerns/CanBeAuthorized.php:265

    public function authorizeIndividualRecords(bool | string | Closure | null $callback = true): static
    {
        $this->authorizeIndividualRecords = $callback;

        return $this;
    }

    public function getIndividualRecordAuthorizationResponse(Model $record): Response
    {
        if (is_string($this->authorizeIndividualRecords)) {
            return Gate::inspect($this->authorizeIndividualRecords, Arr::wrap($record));
        }

        $resolver = ($this->authorizeIndividualRecords instanceof Closure)
            ? $this->authorizeIndividualRecords
            : $this->getHasActionsLivewire()->getDefaultActionIndividualRecordAuthorizationResponseResolver($this);

        if (! $resolver) {
            throw new LogicException('No function was passed to [authorizeIndividualRecords()].');
        }

        $response = $resolver($record);

        if ($response instanceof Response) {
            return $response;
        }

        return $response ? Response::allow() : Response::deny();
    }

    public function shouldAuthorizeIndividualRecords(): bool
    {
        return filled($this->authorizeIndividualRecords) && ($this->authorizeIndividualRecords !== false);
    }

    public function hasAuthorization(): bool
    {

View on GitHub (pinned to 53483fa934)

When it happens

Trigger: Thrown at packages/actions/src/Concerns/CanBeAuthorized.php:265 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of filamentphp/filament@53483fa934 (2026-08-17). Data as JSON: /api/errors/3ff4898abbbf4f69. Report an issue: GitHub.