Files
HickLab3D_Dashboard/app/Models/IntegrationSetting.php
T
Hickmeister ff9960fe06
Deploy HickLab3D Dashboard / Deploy to production (push) Successful in 1m42s
Move integration credentials into encrypted dashboard settings
2026-10-11 16:15:02 +01:00

29 lines
598 B
PHP

<?php
namespace App\Models;
use Database\Factories\IntegrationSettingFactory;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class IntegrationSetting extends Model
{
/** @use HasFactory<IntegrationSettingFactory> */
use HasFactory;
public $incrementing = false;
protected $primaryKey = 'provider';
protected $keyType = 'string';
protected $fillable = ['provider', 'settings'];
protected $hidden = ['settings'];
protected function casts(): array
{
return ['settings' => 'encrypted:array'];
}
}