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 ?4 Replies
Solution
use text type,
$table->text('markdown');
Oh ok thx, a markdown saves don't need to be able to store some new lines ?
when you save your markdown all new lines will be preserved as "\n"
Ok thx π