Times they keep a changing - and on they will go.
When my children were small there were lots of sedative medicines available and frequently used/ recommended amongst mother and baby groups - medised, phenergan, chlorpheniramine (piriton).
These were deemed far safer than their mother's suggestions of rubbing whisky on sore gums, or alcohol for sedative purposes (as mentioned in gripe water).
Earlier than this laudanum (morphine) in 'soothing syrups' was very frequently used.
The desperation of exhausted parents/caregivers to get a child to sleep is as old as time.
These days we have some technological solutions (heartbeat toys/ white noise) that can be helpful.