public function destroy(Fcf $fcf) { if (is_integer($fcf)) { $fcf = Fcf::find($fcf); } $fcf->delete(); Flash::success('Fcf has been created Deleted!'); return Redirect::back(); }
public function destroy($fcf) { $fcf = Fcf::find($fcf); $fcf->delete(); return response(['data' => true, 'status' => 'success', 'message' => 'successfully deleted']); }