how to remove "/" from return json laravel

Published

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: Laravel

Published
Categorised as laravel, php Tagged ,

Answers

Leave a Reply

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq