This PR is a light refactor to spruce up some of Ziggy's code a bit.
Uses constructor property promotion, first class callable syntax, more short arrow functions, and more readable Heredoc indentation.
Removes existence checks for Laravel functionality that is now in all versions of Laravel that we support, like the Illuminate\Support\Reflector class and the URL generator getDefaultParameters and Route bindingFields methods.
Inlines some code that was in methods that were only being called in one place.
This PR is a light refactor to spruce up some of Ziggy's code a bit.
Illuminate\Support\Reflector
class and the URL generatorgetDefaultParameters
and RoutebindingFields
methods.