引入markdown编辑器包1.首先在composer.json"yuanchao/laravel-5-markdown-editor"的require中添加如下内容:"dev-master"2。添加后,执行composerupdatecomposerupdate3。执行这行命令,基本就安装完成了,然后打开config/app.php,在里面添加一些东西'YuanChao\Editor\EndaEditorServiceProvider''providers'=>[...'YuanChao\Editor\EndaEditorServiceProvider'........],//添加`'EndaEditor'=>'YuanChao\Editor\Facade\EndaEditorFacade'`'aliases'=>[.........'EndaEditor'=>'YuanChao\Editor\Facade\EndaEditorFacade'.........],4.添加以上配置后,执行phpartisanvendor:publish–force//add--force覆盖配置文件phpartisanvendor:publish--force执行以上命令后,如果出现如下结果,说明你已经安装成功CopiedFile[/vendor/edvinaskrucas/notification/src/config/notification.php]到[/config/notification.php]Copied目录[/vendor/yuanchao/laravel-5-markdown-editor/src/config/views]到[/resources/views/vendor/editor]复制目录[/vendor/yuanchao/laravel-5-markdown-editor/src/配置/editor]到[/public/plugin/editor]复制文件[/vendor/yuanchao/laravel-5-markdown-editor/src/config/editor.php]到[/config/editor.php]发布完成!安装好以后再说说怎么使用注意!在引入头文件之前必须先在你的视图文件中引入jquery,这里需要用到编辑器,先导入头文件//导入编辑器代码@include('editor::head')然后,比如我textarea需要把它变成一个编辑器。这时候,为你的textarea写一个id=myEditor//如:Iammarkdownsyntax
