예제 #1
0
 /**
  * Display the specified resource.
  *
  * @param  int  $id
  * @return \Illuminate\Http\Response
  */
 public function show($id)
 {
     if (!$this->role->find($id)) {
         return $this->respondNotFound("Role not found");
     }
     $role = $this->role->find($id);
     return $this->respond(['data' => $this->roleTransformer->transform($role)]);
 }