How to pass parameters from a href to a get route in laravel 4.2?

2

Greetings community
I'm working with this route in laravel

  Route::get('/{tienda}/{ruta}', array('before' => 'validar_tienda', function($tienda, $ruta)
{...}

to invoke it from the browser bar I have no major problem with the dynamic parameters "store and route"

The question is how could you invoke it from a href? .. something like the following

href="{{ Route ('/',['mitienda'],'/',['sesionproducto'])  }}"
    
asked by harriroot 09.11.2016 в 21:44
source

1 answer

3

Normally you should be able to use the helper route (), as long as you have assigned a name to your route:

href="{{ route('miruta', ['tienda' => $tienda, 'ruta' => $ruta]) }}"

More information or options in the Laravel documentation: link

    
answered by 09.11.2016 / 22:06
source