how to remove "/" from return json laravel

  laravel, php

I have saved data as string [{"checkin":"new delhi","checkout":"patna"}]

but when I return json its adding /

return new TravelResource($travel);
"checkin": "[{"checkin":"new delhi","checkout":"patna"}]",

how to remove these from string to response

Source: Ask PHP

LEAVE A COMMENT