user table
id
email
password
membership table
id
user_id
expiry_date
delivery_day_innum(eg:like 7,8 days)
deliverdetailes table
id
user_id
created_at
updated_at
goods table
id
user_id
name
qty
goods table
id
user_id
name
qty
Relationship
user->hasOne(Membership::class)
user->hasMany(Deliverdetailes::class)
user->hasMany(Goods::class)
now, i wan to get the goods whose account is not expired and deliver_day_innum is equals to the difference between the present day with the latest created_at date