mardi 10 octobre 2017

Hide column form response json - Laravel 5.5

i get a difficulty to remove same colum from the response json (api) in laravel. I try to use the line of code in the model:

$protected $hidden = ['created_at',...];

it make the column hidden for all request, and i try only to hide columns in exception request , any idea please,

Thank you.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire