filamentphp/filament · error · InvalidArgumentException
No Filament resource found for model [{$modelClass}].
Error message
No Filament resource found for model [{$modelClass}]. What it means
Error "No Filament resource found for model [{$modelClass}]." thrown in filamentphp/filament.
Source
Thrown at packages/panels/src/Panel/Concerns/CanGenerateResourceUrls.php:17
<?php
namespace Filament\Panel\Concerns;
use Illuminate\Database\Eloquent\Model;
use InvalidArgumentException;
trait CanGenerateResourceUrls
{
/**
* @param array<mixed> $parameters
*/
public function getResourceUrl(string | Model $model, string $name = 'index', array $parameters = [], bool $isAbsolute = true, ?Model $tenant = null): string
{
$modelClass = is_string($model) ? $model : $model::class;
$resource = $this->getModelResource($modelClass) ?? throw new InvalidArgumentException("No Filament resource found for model [{$modelClass}].");
if (
($model instanceof Model) &&
in_array($name, ['edit', 'view'])
) {
$parameters['record'] ??= $model;
}
return $resource::getUrl($name, $parameters, $isAbsolute, $this->getId(), $tenant);
}
}
View on GitHub (pinned to 53483fa934)
When it happens
Trigger: Thrown at packages/panels/src/Panel/Concerns/CanGenerateResourceUrls.php:17 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/407bdb8c9b7a8475.
Report an issue: GitHub.