big update all menus

This commit is contained in:
Wian Drs
2026-08-07 09:16:13 +07:00
parent 75342dc7b7
commit e7575ba1c0
101 changed files with 3451 additions and 89 deletions
+10
View File
@@ -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'); }
}