© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•12mo ago•
11 replies
Daniel Reales

ToggleButton state return string

Inside the protected function:
handleRecordUpdate(Model $record, array $data): Model
 {
 dd($data);
handleRecordUpdate(Model $record, array $data): Model
 {
 dd($data);
php

returns "1" or "0".

When it should be null, 0 or 1.

ToggleButtons::make('test')
    ->label('Test')
    ->inline()
    ->boolean(),
ToggleButtons::make('test')
    ->label('Test')
    ->inline()
    ->boolean(),
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

togglebutton group information
FilamentFFilament / ❓┊help
11mo ago
return string instead array
FilamentFFilament / ❓┊help
2y ago
ToggleButton Overflow not handled?
FilamentFFilament / ❓┊help
2y ago
getTableRecordKey(): Return value must be of type string, null
FilamentFFilament / ❓┊help
3y ago