16 lines
327 B
PHP
16 lines
327 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers\Api;
|
||
|
|
||
|
use App\Transformers\PermissionTransformer;
|
||
|
|
||
|
class PermissionsController extends Controller
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
$permissions = $this->user()->getAllPermissions();
|
||
|
|
||
|
return $this->response->collection($permissions, new PermissionTransformer());
|
||
|
}
|
||
|
}
|