You can utilise Laravel macro to extract properties from vendor classes that you won't normally have access to. Of course, given that the vendor class is using the Macroable trait.
Other Uses of Laravel Macros
2019-04-12
166