計劃使用laravel-admin做後臺,前端自己寫
https://gitee.com/mylara/yunchuang.git
composer create laravel/laravel yunchuang --prefer-dist
create database yunchuang;
create user 'yunchuang'@'%' identified by '123456';
grant all on yunchuang.* to 'yunchuang'@'%';
- 配置資料庫
- 啟用laravel,symfony,blade等外掛
-
引入第三方包
composer require encore/laravel-admin composer require barryvdh/laravel-debugbar --dev composer require --dev barryvdh/laravel-ide-helper //修改composer.json檔案 "require": { "infyomlabs/laravel-generator": "5.8.x-dev", "laravelcollective/html": "^5.8.0", "infyomlabs/adminlte-templates": "5.8.x-dev", "infyomlabs/swagger-generator": "dev-master", "appointer/swaggervel": "dev-master", "doctrine/dbal": "~2.3" } "scripts":{ "post-update-cmd": [ "Illuminate\\Foundation\\ComposerScripts::postUpdate", "php artisan ide-helper:generate", "php artisan ide-helper:meta" ] }, //執行composer update 安裝 infyomlabs
- 語言設為中文
- config/admin.php標題
- 檔案系統配置
-
安裝laravel-admin擴充套件
composer require laravel-admin-ext/helpers php artisan admin:import helpers composer require laravel-admin-ext/config php artisan migrate composer require ichynul/configx php artisan admin:import configx composer require laravel-admin-ext/media-manager -vvv php artisan admin:import media-manager composer require laravel-admin-ext/china-distpicker php artisan vendor:publish --tag=laravel-admin-china-distpicker composer require sharemant/laravel-admin-ext-editormd php artisan vendor:publish --tag=laravel-admin-ext-editormd composer require codingyu/ueditor php artisan vendor:publish --provider='Overtrue\LaravelUEditor\UEditorServiceProvider' composer require ichynul/iframe-tabs php artisan vendor:publish --tag=iframe-tabs php artisan admin:import iframe-tabs //對應配置,參考包說明
使用Datagrip連結資料庫,開啟資料表,直接在表admin_menu上改
php artisan serve