Ejemplo n.º 1
0
 public function destroy(Dealsstatus $dealsstatus)
 {
     if (is_integer($dealsstatus)) {
         $dealsstatus = Dealsstatus::find($dealsstatus);
     }
     $dealsstatus->delete();
     Flash::success('Dealsstatus has been created Deleted!');
     return Redirect::back();
 }
 public function destroy($dealsstatus)
 {
     $dealsstatus = Dealsstatus::find($dealsstatus);
     $dealsstatus->delete();
     return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']);
 }