Files
roxane/app/Models/IspconfigMember.php
Nebulae fb6c62f19c
All checks were successful
Deploy Roxane to Preprod / deploy (push) Successful in 43s
feat(ISP config web and webhost imports)
2025-12-31 11:21:20 +01:00

32 lines
614 B
PHP

<?php
namespace App\Models;
use App\Enums\IspconfigType;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class IspconfigMember extends Model
{
protected $table = 'ispconfigs_members';
protected $fillable = [
'member_id',
'ispconfig_client_id',
'ispconfig_service_user_id',
'email',
'type',
'data',
];
protected $casts = [
'type' => IspconfigType::class,
'data' => 'array',
];
public function member(): BelongsTo
{
return $this->belongsTo(Member::class);
}
}