Invading private properties and methods in PHP
Last week, Caleb tweeted about a nifty function called invade - that he had made to easily work with private properties and methods.
π Whatcha think of my new favorite helper method?
— Caleb Porzio (@calebporzio) February 11, 2022
That property/method protected or private? No problemoooo π pic.twitter.com/HqMXKKpRsJ
He added that invade function to Livewire. Because I could see myself using this in non-Laravel projects, I packaged up the function in a new package called spatie/invade.