laravel-trailing-slash icon indicating copy to clipboard operation
laravel-trailing-slash copied to clipboard

Added capability to specify which routes should be considered to add …

Open mfcanovas opened this issue 5 years ago • 3 comments

Added a config file to configure which routes should have the trailing slash.

Default value is ***** which means that trailing slash must be added to all routes (which was the default behaviour). You can publish the config file and specify an array of routes. It will match final urls, route names and route patterns

mfcanovas avatar Jun 20 '19 11:06 mfcanovas

Looks nice, thanks for the pull request! But maybe the better option would be to set "exclude" parameter to exclude some links from being trailing slashed? Also, we need to cover this with some Tests.

fsasvari avatar Jul 08 '19 11:07 fsasvari

@fsasvari any fix for the signed route?

furiousjayed avatar Mar 20 '23 14:03 furiousjayed

@furiousjayed no, unfortunately, nothing yet. Currently don't have time to deal with there "features", but if anyone of you guys has, feel free to create a PR for it, I will be glad to check it and merge it.

fsasvari avatar Mar 21 '23 14:03 fsasvari