Welcome Guest, Not a member yet? Register   Sign In
Route Groups using array can't be done?
#1

(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 Big Grin
$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.
Reply


Messages In This Thread
Route Groups using array can't be done? - by cdsaenz - 11-06-2023, 11:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB