F
Filament12mo ago
lupoz

Can I set default value of toggle?

I want to make active by default so must be 1 or true... Toggle::make('active') ->onColor('success') ->offColor('danger'),
Solution:
Use default(true)
Jump to solution
1 Reply
Solution
einnlleinhatt_
einnlleinhatt_12mo ago
Use default(true)
Want results from more Discord servers?
Add your server