Palzin Track
Get 15% off with code PTRACKSIGNUP15 

Laravel Diary Logo

Laravel Collection Public API: pop

The pop method in Laravel is used to retrieve and remove the last item from a collection. If the collection is empty, null is returned. The original collection is modified by this method.