How to save markdwon

Hi, I'm just wandering how can we save the result of the markdown editor in a database ? What type do you use in the migration, multiLineString ? And then you can use it easily on blade ?
Solution:
use text type, $table->text('markdown');
Jump to solution
4 Replies
Solution
Hasnayeen
Hasnayeen16mo ago
use text type, $table->text('markdown');
Charly / Toufloux
Charly / TouflouxOP16mo ago
Oh ok thx, a markdown saves don't need to be able to store some new lines ?
Hasnayeen
Hasnayeen16mo ago
when you save your markdown all new lines will be preserved as "\n"
Charly / Toufloux
Charly / TouflouxOP16mo ago
Ok thx 🙂

Did you find this page helpful?