16 lines
473 B
PHP
16 lines
473 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Repositories;
|
||
|
|
||
|
interface PermissionInterface
|
||
|
{
|
||
|
public function findAll();
|
||
|
public function getPermissionById($permissionId);
|
||
|
public function delete($permissionId);
|
||
|
public function create(array $permissionDetails);
|
||
|
public function update($permissionId, array $newDetails);
|
||
|
public function getRoleById($roleId);
|
||
|
public function getPermissionListsArrangedByPrefix();
|
||
|
public static function generatePermissionFromRoutes();
|
||
|
}
|