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'),
1 Reply
Solution
Use default(true)