voidlabs / mosaico

Mosaico - Responsive Email Template Editor
https://mosaico.io
GNU General Public License v3.0
1.69k stars 500 forks source link

Use with Laravel #592

Closed felloz closed 3 years ago

felloz commented 3 years ago

Hello, do you have any documentation to use Mosaico to register the html into a database, thank you.

bago commented 3 years ago

Look at #73 to read suggestion on how to read/write the content. Keep in mind that HTML is not what you are working on, but an EXPORT. You can't load the HTML but you have to load the saved model (a json file) and then you can make changes and then save the changed model (and export an updated output HTML).

https://github.com/voidlabs/mosaico/wiki/Saving-and-Loading https://github.com/voidlabs/mosaico/wiki/Serving-Mosaico