/** * * Find a role by its id. * * @param int $roleId * * @return mixed */ public function findRoleById($roleId) { return $this->roleRepository->findById($roleId); }
/** * 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); }