Route Groups using array can't be done? |
11-06-2023, 11:20 AM
(This post was last modified: 11-06-2023, 11:22 AM by cdsaenz. Edit Reason: fix )
I'm trying to use route groups as below but it doesn't seem to work.
Any idea why? If it's a stupid mistake, help me out please, I'm blind after a long time checking this out. Thanks ![]() $types = ['tesoro','cajas']; foreach ($types as $type) { $group = "records/{$type}"; $routes->group($group,['filter' => 'authGuard:allusers,agencyset'],function($routes){ .... PS: If I use "records/cajas" directly, without the foreach it'll work fine. |
Messages In This Thread |
Route Groups using array can't be done? - by cdsaenz - 11-06-2023, 11:20 AM
RE: Route Groups using array can't be done? - by kenjis - 11-06-2023, 07:19 PM
|