コード例 #1
0
 /**
  * @param RoleRequest $request
  * @param $id
  * @return \Illuminate\Http\RedirectResponse
  */
 public function update(RoleRequest $request, $id)
 {
     if ($this->role->saveData("update", $request->all(), $id)) {
         Logs::add('process', "Kullanıcı Grubu Düzenlendi.\nID:{$id}");
         Flash::success('Başarıyla Düzenlendi');
         return redirect()->route('admin.role.index');
     } else {
         Logs::add('errors', "Kullanıcı Grubu Düzenlenemdi!.\nID:{$id}");
         Flash::error('Bir Hata Meydana Geldi ve Düzenlenemedi');
         return redirect()->back();
     }
 }
コード例 #2
0
ファイル: RolesController.php プロジェクト: phpspider/core
 /**
  * @param RoleRequest $request
  * @param $id
  * @return \Illuminate\Http\RedirectResponse
  */
 public function update(RoleRequest $request, $id)
 {
     if ($this->role->saveData("update", $request->all(), $id)) {
         Logs::add('process', trans('whole::http/controllers.roles_log_3', ['id' => $id]));
         Flash::success(trans('whole::http/controllers.roles_flash_3'));
         return redirect()->route('admin.role.index');
     } else {
         Logs::add('errors', trans('whole::http/controllers.roles_log_4', ['id' => $id]));
         Flash::error(trans('whole::http/controllers.roles_flash_4'));
         return redirect()->back();
     }
 }