title: Laravel not save boolean to Database
body: <p>I don't know why my boolean value not change or save to database</p>
  <p>Here's my PostController:</p>
  <pre><code>public function store(Request $request)
      {
          $request-&gt;validate([
              'post_title' =&gt; 'required|string|max:60',
              'post_slug' =&gt; 'required|string|unique:posts,post_slug',
              'post_thumbnail' =&gt; 'required',
              'post_excerpt' =&gt; 'required|string|max:500',
              'post_seq' =&gt; 'required',
              'post_description' =&gt; 'required|string',
              'post_meta_title' =&gt; 'required|string|max:60',
              'post_meta_description' =&gt; 'required|string|max:250',
              'post_meta_keyword' =&gt; 'required|string',
              'is_active' =&gt; 'required'
          ]);
  
          Post::create([
              'post_title' =&gt; $request-&gt;post_title,
              'post_slug' =&gt; $request-&gt;post_slug,
              'post_seq' =&gt; $request-&gt;post_seq,
              'post_thumbnail' =&gt; parse_url($request-&gt;post_thumbnail)['path'],
              'post_excerpt' =&gt; $request-&gt;post_excerpt,
              'post_description' =&gt; $request-&gt;post_description,
              'post_meta_title' =&gt; $request-&gt;post_meta_title,
              'post_meta_description' =&gt; $request-&gt;post_meta_description,
              'post_meta_keyword' =&gt; $request-&gt;post_meta_keyword,
              'created_by' =&gt; User::where('name')-&gt;get(),
              'is_active' =&gt; $request-&gt;has('is_active'),
              'user_id' =&gt; $request-&gt;user_id
          ]);
          Alert::success('Add Post', 'Added Post Success');
          dd($request-&gt;all());
          // return redirect()-&gt;route('posts.index');
      }
  </code></pre>
  <p>Here's my Post Model:</p>
  <pre><code>class Post extends Model
  {
      use HasFactory;
      protected $table = 'posts';
      protected $fillable = ['post_title', 'post_slug', 'post_thumbnail', 'post_seq', 'post_excerpt', 'post_description', 'post_meta_title', 'post_meta_description', 'post_meta_keyword', 'is-active', 'created_by'];
  
      public function scopeSearch($query, $title)
      {
          return $query-&gt;where('post_title', 'LIKE', &quot;%{$title}%&quot;);
      }
  }
  </code></pre>
  <p>Here's my create.blade.php:</p>
  <pre><code>&lt;!-- status --&gt;
  &lt;div class=&quot;form-group{{ $errors-&gt;has('is_active') ? ' has-error' : '' }}&quot;&gt;
       &lt;label&gt;Is user active?&lt;/label&gt;
       &lt;select class=&quot;form-control&quot; name=&quot;is_active&quot; id=&quot;is_active&quot;&gt;
           &lt;option value=&quot;1&quot; @if (old('is_active')==1) selected @endif&gt;True&lt;/option&gt;
           &lt;option value=&quot;0&quot; @if (old('is_active')==0) selected @endif&gt;False&lt;/option&gt;
       &lt;/select&gt;
  &lt;/div&gt;
  </code></pre>
  <p>When i <code>dd($request-&gt;all());</code> it change or save to 1 when i choose True, but when i checked in my database, it still 0.</p>