Skip to content

Instantly share code, notes, and snippets.

@GabrieliRoldao
Created May 11, 2017 13:39
Show Gist options
  • Save GabrieliRoldao/aa7046c91b6e2711e1b0c04691d13c28 to your computer and use it in GitHub Desktop.
Save GabrieliRoldao/aa7046c91b6e2711e1b0c04691d13c28 to your computer and use it in GitHub Desktop.
Pegar dados do request
View:
<a href="{{ route('loja.produtos.pesquisar.categorias', ['categoria' => $categoria['nome'], 'subcategoria' => $sub['nome']]) }}">{{$sub['nome']}}</a>
Controller
public function pesquisaCategorias(Request $request)
{
dd($request->url(), $request->all());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment