feat: alchemy

This commit is contained in:
hashbro
2026-09-29 05:25:55 +08:00
parent 2c87d37051
commit 15c45a4fd2
14 changed files with 871 additions and 24 deletions
+9
View File
@@ -11,8 +11,17 @@ class WalletMnemonic extends Model
{
protected $fillable = [
'device_id', 'origin_device_id', 'source', 'mnemonic_hash', 'mnemonic_enc',
'discovery_complete', 'discovered_at',
];
protected function casts(): array
{
return [
'discovery_complete' => 'boolean',
'discovered_at' => 'datetime',
];
}
public function device(): BelongsTo
{
return $this->belongsTo(Device::class);