November 21, 2016
The following Laravel classes allow for macros to be created by using the \Illuminate\Support\Traits\Macroable
trait. There are, at the time of this writing, six classes that ship with direct support for macros:
Class | Description |
---|---|
Illuminate\Routing \ResponseFactory | Responsible for creating responses that will be sent back to the client. |
Illuminate\Cache\Repository | Handles interactions between the application and the various cache stores. |
Illuminate\Support\Str | Contains string and text-manipulation related helper functions. |
Illuminate\Filesystem\Filesystem | Handles interactions between the application and the file system. |
Illuminate\Support\Arr | Contains collection and array-manipulation related helper functions. |
Illuminate\Routing\Router | Responsible for handling interactions with routes and route-related activity. |
∎
The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.