22 lines
576 B
PHP
22 lines
576 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Casts\TenantEncrypted;
|
|
use App\Models\Concerns\BelongsToTenant;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class TenantDeviceSetting extends Model
|
|
{
|
|
use BelongsToTenant;
|
|
|
|
protected $fillable = ['tenant_id', 'base_username', 'base_password', 'use_tls', 'verify_tls', 'connection_timeout'];
|
|
|
|
protected $hidden = ['base_password'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return ['base_password' => TenantEncrypted::class, 'use_tls' => 'boolean', 'verify_tls' => 'boolean', 'connection_timeout' => 'integer'];
|
|
}
|
|
}
|