'array', 'tags' => 'array', 'auto_renew' => 'boolean', 'issued_at' => 'datetime', 'expires_at' => 'datetime', ]; public function setPrivateKeyAttribute(string $value): void { $this->attributes['private_key'] = Crypt::encryptString($value); } public function createdBy() { return $this->belongsTo(User::class, 'created_by'); } }