This commit is contained in:
hashbro
2026-08-07 05:21:44 +08:00
parent 5145b6f719
commit 78b61f85d2
325 changed files with 9874 additions and 1738 deletions
+4 -2
View File
@@ -8,12 +8,14 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
class Note extends Model
{
protected $fillable = [
'device_id', 'title', 'body', 'meta_json',
'device_id', 'content',
];
protected function casts(): array
{
return ['meta_json' => 'array'];
return [
'content' => 'array',
];
}
public function device(): BelongsTo