*/ use HasFactory; /** * @return array */ protected function casts(): array { return [ 'type' => CustomerType::class, 'personal_identity_code' => 'encrypted', ]; } }