Checkbox

You're browsing the documentation for an old version of MoonShine. Consider upgrading your project to MoonShine 2.x.

The Checkbox field includes all the basic methods

use MoonShine\Fields\Checkbox;
 
//...
 
public function fields(): array
{
return [
Checkbox::make('Label', 'table_field')
];
}
 
//...