jeudi 6 décembre 2018

How to print brandname witch related to its categoryname in Laravel?

working with laravel 5.6 and mysql. I have following table name as vehicles

id  name  categoryname  brandname    model
1   juy   car           toyota       121
2   gty   van           nissan       caravan
3   bgh   car           bmw          520d
4   hyu   van           ford         max
5   nhj   car           toyota       121

now I need print separately each brandnames with related to categoryname like this,

car
toyota
bmw

van
nissan
ford

how can I do this in my controller?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2SsOxbY
via IFTTT

Aucun commentaire:

Enregistrer un commentaire