*/ protected function casts(): array { return [ 'data' => 'array', ]; } public static function boot() { parent::boot(); static::creating(function ($model) { $model->imported_by = auth()->user()->id; }); } }