Laravel 5 Eloquent lazy eager loading

Sometimes you may need to eager load a relationship after the parent modal has already been retrieved. For Example this may be very useful if you need to dynamically decide whether to load related models or not, or in combination with caching.

You can also set additional query constraints on the eager loading query, by passing a Closure to the load method.

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.