aaronlord / laroute

Generate Laravel route URLs from JavaScript.
MIT License
794 stars 139 forks source link

Grouped routes #60

Open happyDemon opened 7 years ago

happyDemon commented 7 years ago

It would be nice to be to defined route groups, each group would get exported to a different file.

I'd personally find it handy since it wouldn't expose urls i use in the admin to the general users.

Config Add a groups array, the keys in that array would be the group names, while the value would map to the filename/location

Route definition

Map default group:

'laroute' => true

Map to a defined group:

'laroute' =>'groupName'

Doing it this way would be backwards-compatible.

If you need help implementing this I'm willing to submit a PR

ctf0 commented 7 years ago

https://github.com/aaronlord/laroute/pull/66

happyDemon commented 7 years ago

@ctf0 why are you referencing your pull request? This issue isn't about ignoring routes, but grouping them

ctf0 commented 7 years ago

sorry, thought u wanted to ignore routes by group, my bad