forked from admin/services_core
big update base struktur tahap 1
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class NasMikrotik extends Model
|
||||
{
|
||||
protected $guarded = ['id'];
|
||||
|
||||
protected $hidden = ['api_password', 'radius_secret'];
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
return ['api_password' => 'encrypted', 'radius_secret' => 'encrypted'];
|
||||
}
|
||||
|
||||
public function tenant()
|
||||
{
|
||||
return $this->belongsTo(Tenant::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user