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