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