PHP has an array destructuring feature, but let's be honest: it's not as cool and powerful as the JS one.
What I did is just a package for Laravel - extending its Array helper class - to have even a better destructuring than javascript.
Check it out! https://github.com/danilopolani/laravel-array-destructuring
What I did is just a package for Laravel - extending its Array helper class - to have even a better destructuring than javascript.
Check it out! https://github.com/danilopolani/laravel-array-destructuring