big update all menus
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
<?php
|
||||
namespace App\Models;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
class NasScriptPolicy extends Model
|
||||
{
|
||||
protected $guarded = ['id'];
|
||||
protected function casts(): array { return ['allowed_variables' => 'array', 'enabled' => 'boolean']; }
|
||||
public function versions() { return $this->hasMany(NasScriptPolicyVersion::class); }
|
||||
public function latestVersion() { return $this->hasOne(NasScriptPolicyVersion::class)->ofMany('version', 'max'); }
|
||||
}
|
||||
Reference in New Issue
Block a user