initial commit

This commit is contained in:
2026-06-29 13:00:18 +06:00
commit f2aea74471
3931 changed files with 562423 additions and 0 deletions

23
app/Models/Submodule.php Normal file
View File

@@ -0,0 +1,23 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
class Submodule extends BaseModel
{
protected $fillable = ['module_id', 'key', 'name', 'is_default'];
use HasFactory;
public function getAllSubmodules()
{
return self::get();
}
public function permission(){
return $this->hasMany('App\Models\Permission');
}
}