I have a privacy function.If public = 1
, the post is public, else if is 0, the post is private.I have this toggle :
<label class="toggle" style="right: 185px">{{ Form::checkbox('public') }}<i class="no-rounded privancy"></i></label>
The toggle is set on public by default, but at submit, in database I receive NULL
in column public
. If I press the button on private, in database I Receive 1
, and 1 is for PUBLIC. How it's working?How can I make this working because I need this.