🔥 Laravel Tip: orderByPivot

Nov 4, 2022

You can order your many-to-many relationships by the creation time.

For example, getting the subscribers from most recent to least recent.
tip-image-0