big update all menus
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class CustomerNasAccount extends Model
|
||||
{
|
||||
protected $guarded = ['id'];
|
||||
|
||||
protected $hidden = ['password'];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return [
|
||||
'password' => 'encrypted',
|
||||
'last_synced_at' => 'datetime',
|
||||
'validity_started_at' => 'datetime', 'first_login_at' => 'datetime', 'expires_at' => 'datetime',
|
||||
'last_reconciled_at' => 'datetime', 'remote_state' => 'array',
|
||||
];
|
||||
}
|
||||
|
||||
public function customer()
|
||||
{
|
||||
return $this->belongsTo(Customer::class);
|
||||
}
|
||||
|
||||
public function mikrotik()
|
||||
{
|
||||
return $this->belongsTo(NasMikrotik::class, 'nas_mikrotik_id');
|
||||
}
|
||||
|
||||
public function packageProfile()
|
||||
{
|
||||
return $this->belongsTo(NasPackageProfile::class, 'nas_package_profile_id');
|
||||
}
|
||||
|
||||
public function packageProfileTarget()
|
||||
{
|
||||
return $this->belongsTo(NasPackageProfileTarget::class, 'nas_package_profile_target_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user