Using collection in controllers.
For demo usage using laravel collection.