Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes several changes to improve code readability and functionality in both the backend and frontend. The most important changes include modifying the
RedirectController
to handle the$key
parameter more flexibly, improving the layout and formatting in Vue components, and enhancing the number formatting utility in the helper file.Backend Changes:
app/Http/Controllers/RedirectController.php
: Modified the__invoke
method to handle the$key
parameter as optional and moved it after theRequest
parameter for better flexibility.Frontend Changes:
resources/js/Pages/Link/Create.vue
andresources/js/Pages/Link/Edit.vue
: Improved the layout by adding a wrapperdiv
with a flexbox layout and consistent indentation forLabel
andInputError
components.resources/js/Pages/Link/Index.vue
: Removed redundant HTML and improved the display of click counts by using a helper function for number formatting. [1] [2]Utility Enhancements:
resources/js/helper.js
: Enhanced thekFormatter
function to handle larger numbers and added support for formatting in billions and millions.