How To Save Ckeditor Text In Database Laravel?

Submitted by pakainfo - 3 years ago

As I will cover this Post with live Working example to develop how to save ckeditor content in mysql database, so the Laravel ckeditor display raw data in the database and post form is used for this example is following below.

Laravel 5/6/7 Ckeditor Update Edit And Save Data
//https://www.pakainfo.com/how-to-save-ckeditor-text-in-database-laravel/

save ckeditor text Helper function

function convertData($body_content) {
   $body_content = trim($body_content);
   $body_content = stripslashes($body_content);
   $body_content = htmlspecialchars($body_content);
   return $body_content;
} 


Read : https://www.pakainfo.com/how-to-save-ckeditor-text-in-database-laravel/