Save JSON data using Laravel

Asked

Viewed 288 times

0

When saving data to the database Mysql with the column of the type JSON using the Laravel. He inserts the data this way:

"{\"publish\":1,\"start_date\":\"2018-01-06\",\"start_time\":\"00:00\",\"end_date\":\"2018-01-09\",\"end_time\":\"00:00\"}"

How do I stop when it’s inserted into the bank

{"publish": 1, "end_date": "2018-01-13", "end_time": "00:00", "start_date": "2018-01-06", "start_time": "00:00"}

Why at first I’m not able to read the information on template ().

Thanks.

  • 1

    Come on. It’s the code.?

  • shows how these return json

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.