多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
1.下载laravel ``` composer create-project --prefer-dist laravel/laravel cms ``` 2.配置数据库 ![](https://box.kancloud.cn/ab4efb29580994aabe39137dd7d0db79_1110x582.png) ![](https://box.kancloud.cn/4e3589dce9a45f7e7c14687c26759e98_1143x286.png) ![](https://box.kancloud.cn/db092ea51d57d818a550328679288cc6_1121x463.png) ![](https://box.kancloud.cn/5ef9f391e6fa83693c2b85fe6f181920_1569x776.png) 如果数据库迁移报错找到app/Provides/AppServiceProvider.php ``` use Illuminate\Support\Facades\Schema; public function boot() { Schema::defaultStringLength(191); } ``` 3.安装laravel admin(文档地址:https://laravel-admin.org/docs/zh/installation) ``` composer require encore/laravel-admin ``` 可以指定版本: ``` composer require encore/laravel-admin "1.5.*" ``` 4.运行下面的命令来发布资源 ``` php artisan vendor:publish --provider="Encore\\Admin\\AdminServiceProvider" ``` 5.运行下面的命令完成安装 ``` php artisan admin:install ``` 6.安装完成(http://www.cms.com/admin/) ![](https://box.kancloud.cn/0385879761f5a285f64fd26715bed48f_1763x641.png) 7.默认为英文改为中文 ![](https://box.kancloud.cn/502c3c0045eec3e9c1873ce5aa1bb0aa_1082x460.png) ![](https://box.kancloud.cn/0cff45b81fcd4db6e84a03db714a04c4_892x191.png) ``` 'locale' => 'zh-CN', ``` ![](https://box.kancloud.cn/9a8e019f04bf1a61135d86bf5bc18507_1852x529.png) 左侧是在数据表中修改 8.下载帮助工具 提供路由查看、artisan命令、脚手架等开发帮助工具helpers ``` composer require laravel-admin-ext/helpers php artisan admin:import helpers ``` 9.提供WEB界面的备份工具 在安装此软件包之前,必须安装[laravel-backup](https://github.com/spatie/laravel-backup)并完成配置,这个在windows系统有问题,无法使用。 ``` composer require laravel-admin-ext/backup -vvv php artisan admin:import backup ``` 10.日志查看 ``` composer require laravel-admin-ext/log-viewer -vvv php artisan admin:import log-viewer ```