Hi all - I'm designing a generic table that builds itself based on the attributes of a model. To do that, I'm leveraging the $model->getAttributes() method. When I try to research additional methods available to me, I'm hitting a blank page. For instance, when I search the Laravel documentation for getAttributes(), I get a 'no results' message. When I CTRL-B on PHPStorm, I get a 'Cannot find declaration to go to' message. When I Shift-Shift on PHPStorm I get hundreds of references. My question: Is there Laravel documentation available that defines the methods available to me for the Collection's metadata?
Thanks!
In addition to the methods listed in the documentation, you can also use any of the methods available on PHP's built-in array functions, as Collections extend PHP's array class.
To get a list of all available methods on a Collection instance, you can use the get_class_methods function. For example: