How I can use toogle for insert data( 0 1) to database? I couldn't find this question's answer from Google in two days.
Toggle::make('is_active')
I write code as above but it doesn't work. It works as button but not change data on database.
I found the answer. Just need to add 'is_active'
to $fillable
in Model:
protected $fillable = [
'is_active',
];