Laracasts is packed full with over 1,000 lessons just like this one.
Sign up to get full access or
to your account and sit back.
Published On Aug. 10th 2018
Run Time 7:18
In some situations, you may find it beneficial to return a custom collection class for your various Eloquent queries. No problem: overriding the newCollection method on your model makes this task a cinch to complete.