<?php namespace App\Models; use Illuminate\Database\Eloquent\Model; class Department extends Model { protected $fillable=['name','code','manager_user_id','is_active']; protected function casts():array{return ['is_active'=>'boolean'];} }