complete Complete User Request Submission section RAD-1
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
||||
use Spatie\Permission\Models\Permission as SpatiePermission;
|
||||
|
||||
class Permission extends SpatiePermission
|
||||
{
|
||||
use HasFactory;
|
||||
|
||||
protected $with = ['permissionsParent'];
|
||||
|
||||
public function permissionsParent(){
|
||||
return $this->hasMany(Permission::class , 'parent_id' , 'id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user