コード例 #1
0
 public function postDelete($id)
 {
     try {
         if (!Policy::Destroy($id)) {
             throw new Exception("Bandwidth Policy deletion failed.");
         }
         $this->notifySuccess("Bandwidth Policy successfully deleted.");
     } catch (Exception $e) {
         $this->notifyError($e->getMessage());
         return Redirect::route('policies.index');
     }
     return Redirect::route('policies.index');
 }