예제 #1
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param int $id
  *
  * @return Response
  */
 public function edit($id)
 {
     if (!($role = $this->role->find($id))) {
         flash(trans('core::messages.resource.resource not found', ['name' => trans('user::roles.title.role')]));
         return redirect()->route('backend::user.role.index');
     }
     return view('user::backend.roles.edit', compact('role'));
 }
예제 #2
0
 /**
  * Show the form for editing the specified resource.
  *
  * @param  int      $id
  * @return Response
  */
 public function edit($id)
 {
     if (!($role = $this->role->find($id))) {
         flash()->error(trans('user::messages.role not found'));
         return redirect()->route('admin.user.role.index');
     }
     return view('user::admin.roles.edit', compact('role'));
 }