예제 #1
0
 /**
  * * Find a role by its id.
  *
  * @param int $roleId
  *
  * @return mixed
  */
 public function findRoleById($roleId)
 {
     return $this->roleRepository->findById($roleId);
 }
예제 #2
0
 /**
  * Get a role by id
  *
  * @param $id role_id
  * @return \Illuminate\Http\JsonResponse
  */
 public function show($id)
 {
     $role = $this->roleRepository->findById($id);
     return response()->json($role, 200);
 }