This commit is contained in:
2025-04-09 16:26:44 +08:00
parent f9175f7dd4
commit 00c8bb9c50
8 changed files with 213 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
namespace app\admin\model;
use Illuminate\Database\Eloquent\Model;
class Permission extends Model
{
protected $table = 'permissions';
public function roles()
{
return $this->belongsToMany(Role::class, 'role_permissions', 'permission_id', 'role_id');
}
}