add all permissions api

This commit is contained in:
2025-05-07 10:09:18 +03:30
parent 06edbbbe0e
commit ee83c776ec
5 changed files with 115 additions and 27 deletions

View File

@@ -46,4 +46,9 @@ class ProfileController extends Controller
]);
return $this->successResponse();
}
public function permissions(): JsonResponse
{
return $this->successResponse(auth()->user()->getAllPermissions()->pluck('name'));
}
}