user roles, bug fixes

This commit is contained in:
Kwesi Banson
2026-10-13 14:29:40 +00:00
parent 40162f3080
commit 8428d94abd
14 changed files with 366 additions and 9 deletions

View File

@@ -0,0 +1,17 @@
<?php
namespace App\Models;
use App\Models\StaffMember;
use Illuminate\Database\Eloquent\Model;
class ErpSystemRole extends Model
{
protected $guarded = array('id');
public $table = "system_roles";
public function staffmembers(): BelongsToMany
{
return $this->belongsToMany(StaffMember::class, 'user_roles', 'system_role_id', 'staff_member_id');
}
}