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
Hasnayeenβ€’14mo ago
use text type, $table->text('markdown');
Charly / Toufloux
Charly / TouflouxOPβ€’14mo ago
Oh ok thx, a markdown saves don't need to be able to store some new lines ?
Hasnayeen
Hasnayeenβ€’14mo ago
when you save your markdown all new lines will be preserved as "\n"
Charly / Toufloux
Charly / TouflouxOPβ€’14mo ago
Ok thx πŸ™‚
Want results from more Discord servers?
Add your server