第一天:新專案開發【雲創平臺】(學習怎麼寫文章,以前沒寫過,這篇文章正在寫)

WangWang發表於2019-05-17

計劃使用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'@'%';
  1. 配置資料庫
  2. 啟用laravel,symfony,blade等外掛
  3. 引入第三方包

    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
  1. 語言設為中文
  2. config/admin.php標題
  3. 檔案系統配置
  4. 安裝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

第一天:新專案開發【雲創平臺】

相關文章