コード例 #1
0
 public function destroy($id)
 {
     $deleted_count = Problem::destroy($id);
     if ($deleted_count > 0) {
         Flash::success('Se ha borrado el problema.');
     } else {
         Flash::error('Ocurrió un problema durante el borrado.');
     }
     return redirect('problems');
 }