jeudi 1 septembre 2016

Laravel 5.1 - Make a string with variables

i have this code in my index of products of my ecommerce.

<img src="" title="" alt="">

It create a link like this:

http://localhost:8000/shop/t-shirt/men/some-slug-product

i would like create like this:

http://localhost:8000/shop/t-shirt,men,some-slug-product

So i can create image and save the title image with variables separated by comma.

I tryed different option but it doesn't work well.

Thank you for your help! :)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire