spatie/invade
Access and manipulate private/protected object and static properties, and call private methods in PHP using a simple invade() helper. Handy for testing, debugging, and working around encapsulation when needed, without verbose reflection code.
A PHP function to work with private properties and methods
How can I help you explore Laravel packages today?