jeudi 25 juin 2020

Laravel Rest API - Get specific columns in json

i'm building Restful API Using Laravel

what i wanna to do is to get specific columns in JSON response instead on get all column

For example I've Product Table with these columns

title - price - description - status - created_at - updated at

and i just want to show title, price and description in JSON Response

So, any idea to do that?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire