jeudi 14 février 2019

How to add query string to Laravel view

I'm using Laravel 5.7, and would like to return a view, with query strings. E.g. the below is what I'm doing right now.

return view('cart', compact('somevar'))

This takes the user to mydomain.com/cart

I'd like to add query strings, e.g. so the user goes to mydomain.com/cart?id=123

How would I do this?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire