Save JSON data using Laravel

0

When saving data to the MySQL database with the JSON column using Laravel . It 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 get it when it's inserted in the database?

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

Why the first way I can not read the information in the template .

Thank you.

    
asked by anonymous 04.01.2018 / 19:12

0 answers