Php 为什么CKEditor不使用Laravel在我的数据库中添加html?

Php 为什么CKEditor不使用Laravel在我的数据库中添加html?,php,mysql,laravel,ckeditor,Php,Mysql,Laravel,Ckeditor,我使用的是CKEditor和Laravel,但当我尝试将文本放在粗体或彩色中时,Laravel不会将其插入我的数据库,您能帮我解决这个问题吗 这是我的控制器: { $validator = Validator::make($request->all(), [ 'title' => 'required|string|min:5|max:256', 'body' => 'required|string|min:

我使用的是CKEditor和Laravel,但当我尝试将文本放在粗体或彩色中时,Laravel不会将其插入我的数据库,您能帮我解决这个问题吗

这是我的控制器:

    {
        $validator = Validator::make($request->all(), [
            'title' => 'required|string|min:5|max:256',
            'body' => 'required|string|min:5|max:500000',
        ]);

        if ($validator->fails()) {
            flash('Une erreur est survenue lors de la publication')->error();
            return Redirect::route('siac_store_release');
        }

        $release = new Release;

        $release->title = $request->title;
        $release->body = $request->body;

        $release->save();

        flash('Le communiqué a bien été publié.')->success();
        return Redirect::route('siac_releases');
    }
如果有必要,我可以提供更多的信息


对不起,我的英语不是我的第一语言。

您好,问题在于您的刀片代码在打印POST数据数组时,您收到的内容是HTML格式还是普通文本??