This PR adds a geo attribute to the route action array which is more "Laravel-ish".
This will improve performance as we no longer do need to serialize the callback and follow a certain "schema" to define the middleware parameters string as in the following piece of code:
Note: There is an increase of 20 seconds in the build time, this does not mean the code is slower as the tests now have 3 more assertions.
Builds Screenshot
Developers can now also define route attributes manually which is not the best way to do so, but for developers that prefer verbosity, they can now write something like the following:
This PR adds a
geo
attribute to the routeaction
array which is more "Laravel-ish".This will improve performance as we no longer do need to serialize the callback and follow a certain "schema" to define the middleware parameters string as in the following piece of code:
Note: There is an increase of 20 seconds in the build time, this does not mean the code is slower as the tests now have 3 more assertions.
Builds Screenshot
Developers can now also define route attributes manually which is not the best way to do so, but for developers that prefer verbosity, they can now write something like the following: