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