Palzin Track
Get 15% off with code PTRACKSIGNUP15 

Laravel Diary Logo

Laravel Collection Public API: keys

The keys method in Laravel retrieves all the keys of the items in a collection. It returns a new Collection instance. You can use this method to get the keys of both indexed and associative arrays.