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