2025-10-01 01:09:56 +09:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Models\Permissions;
|
|
|
|
|
|
|
|
|
|
use App\Models\Tenants\Tenant;
|
|
|
|
|
use Spatie\Permission\Models\Permission as SpatiePermission;
|
|
|
|
|
|
|
|
|
|
class Permission extends SpatiePermission
|
|
|
|
|
{
|
|
|
|
|
protected $fillable = [
|
|
|
|
|
'tenant_id',
|
|
|
|
|
'name',
|
|
|
|
|
'guard_name',
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
public function tenant()
|
|
|
|
|
{
|
|
|
|
|
return $this->belongsTo(Tenant::class);
|
|
|
|
|
}
|
2025-11-06 17:45:49 +09:00
|
|
|
}
|