*/ use HasUuids; protected $table = 'banks'; /** * The attributes that are mass assignable. * * @var list */ protected $fillable = [ 'name', 'code', 'swift_code', 'is_active', ]; /** * The attributes that should be hidden for serialization. * * @var list */ protected $hidden = [ ]; /** * Get the attributes that should be cast. * * @return array */ protected function casts(): array { return [ 'name' => 'string', 'code' => 'string', 'swift_code' => 'string', 'is_active' => 'boolean', ]; } public function bankDetails() { return $this->hasMany(BankDetail::class); } }