29 lines
605 B
PHP
29 lines
605 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class VoucherLoginPageSetting extends Model
|
|
{
|
|
protected $guarded = ['id'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'enabled' => 'boolean', 'allowed_package_profile_ids' => 'array',
|
|
'settings' => 'array', 'enabled_at' => 'datetime',
|
|
];
|
|
}
|
|
|
|
public function tenant()
|
|
{
|
|
return $this->belongsTo(Tenant::class);
|
|
}
|
|
|
|
public function gatewayAccount()
|
|
{
|
|
return $this->belongsTo(PaymentGatewayAccount::class, 'payment_gateway_account_id');
|
|
}
|
|
}
|