*/ use HasFactory; /** * @var array */ protected $fillable = [ 'profile_id', 'name', 'slug', 'is_reporting_unit', 'report_input_type', 'is_active', ]; /** * @return array */ protected function casts(): array { return [ 'profile_id' => 'integer', 'is_reporting_unit' => 'boolean', 'is_active' => 'boolean', ]; } public function profile(): BelongsTo { return $this->belongsTo(Profile::class); } }