You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it somehow possible to add GazeBanner to the edit form modal ? I set the same identifier in both the modal in DeviceResource and the OwnerResource, but I get a 404 error. Is this just a bug or there is no way to set it in this situation?
No query results for model [App\Models\Device] 1
vendor/filament/filament/src/Resources/Pages/Concerns/InteractsWithRecord.php#26
Illuminate\Database\Eloquent\ModelNotFoundException
$record = static::getResource()::resolveRecordRouteBinding($key);
if ($record === null) {
throw (new ModelNotFoundException)->setModel($this->getModel(), [$key]);
}
return $record;
My OwnerResource:
public static function form(Form $form): Form
{
return $form
->schema(
GazeBanner::make()
->identifier('owner')
->lock()
->canTakeControl()
Forms\Components\TextInput::make('name')
->required()
->maxLength(255),
...
);
}
And my other resource DeviceResource with edit form modal:
public static function form(Form $form): Form
{
return $form
->schema(
Forms\Components\Select::make('owner_id')
->relationship('owner', 'name')
->searchable()
->preload()
->editOptionForm([
GazeBanner::make()
->identifier('owner')
->lock()
->canTakeControl()
Forms\Components\TextInput::make('name')
->required()
->maxLength(255),
...
])
->required()
);
}
The text was updated successfully, but these errors were encountered:
I agree that this should be supported behaviour. It is likely an edge-case that needs to be accounted for. I will try to replicate your issue and implement a fix for it ASAP.
Is it somehow possible to add GazeBanner to the edit form modal ? I set the same identifier in both the modal in DeviceResource and the OwnerResource, but I get a 404 error. Is this just a bug or there is no way to set it in this situation?
My OwnerResource:
And my other resource DeviceResource with edit form modal:
The text was updated successfully, but these errors were encountered: