A small new feature in Laravel 5.1 - just for those who want to group their routes a little more properly. Now we can add a prefix not only to routes, but to the route groups as well.
Now, to the point - a new feature of Laravel 5.1 (not 5.0): we can assign that user. prefix to the whole group, with the same "as" parameter. Like this:
The usage from views or from other files doesn't change - it's just more convenient grouping of routes in routes.php file.
Notice another detail - we are not limited to dots at the end of the group name. We can put whatever symbol we want there: colon, comma, dash etc. Like this:
No comments or questions yet...