<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                # Laravel-Gii 可視化代碼生成工具 CRUD +GUI GIT:[https://github.com/sunshinev/laravel-gii](https://github.com/sunshinev/laravel-gii) 適用于快速B端后臺開發 根據MySQL的表結構生成對應的Model、Observer、Controller、View、Route等相關項目文件,通過簡單點擊鼠標即可自動創建完整的CRUD后臺。 ![image](https://github.com/sunshinev/remote_pics/raw/master/laravel-gii/controller.png) [TOC] ## 安裝之前需了解 項目創建生成的模板需要依賴于[《github:laravel-fe-render》](https://github.com/sunshinev/laravel-fe-render) 項目,作為模板解析。 后臺頁面依賴項目編譯后的app.js [《github:base-fe》](https://github.com/sunshinev/base-fe) ## 安裝 ### 安裝包 ``` Composer require sunshinev/laravel-gii -vvv ``` ### 發布文件 > 該操作會發布assets靜態文件,到public目錄下 ``` php artisan vendor:publish ``` 選擇 `Tag: laravel-gii` ### 然后訪問吧 `http:[domain]/gii/model` ## 使用 ### 創建Model模型 #### 表單說明 1. 表名稱(支持下拉選擇) 2. Model類名(想要創建模型類,包含命名空間) 3. 模型繼承的父類(如果是Mongo可以繼承`Jenssegers\Mongodb\Eloquent\Model`,MySQL用`Illuminate\Database\Eloquent\Model`) 生成的文件列表,藍色代表全新文件,紅色代表已有文件但是存在不同,白色代表已有文件。 ![image](https://github.com/sunshinev/remote_pics/raw/master/laravel-gii/success.png) ### 創建CRUD CRUD的創建,需要依賴之前創建的模型。 該操作會同時生成: - route - controller - views #### 表單說明 1. 控制器名稱(包含命名空間) 2. 之前創建的模型類 ![image](https://github.com/sunshinev/remote_pics/raw/master/laravel-gii/controller.png) ### 文件差異對比 ![image](https://github.com/sunshinev/remote_pics/raw/master/laravel-gii/diff2.png) ### 最終文件內容 ![image](https://github.com/sunshinev/remote_pics/raw/master/laravel-gii/viewfile.png) ## 創建后后臺頁面 ### 列表頁 該頁面包含能力: - 列表 - 分頁 - 檢索 - 刪除+批量刪除 - 預覽 - 詳情 - 編輯 ![image](https://github.com/sunshinev/remote_pics/raw/master/laravel-gii/bg/bg_list.png) ### 刪除+批量刪除 取消按鈕放大,防止誤刪 ![image](https://github.com/sunshinev/remote_pics/raw/master/laravel-gii/bg/bg_delete.png) ### 行預覽 ![image](https://github.com/sunshinev/remote_pics/raw/master/laravel-gii/bg/bg_view.png) ### 編輯頁面 ![image](https://github.com/sunshinev/remote_pics/raw/master/laravel-gii/bg/bg_edit.png) ## 相關問題 1. 如果生成完Model之后,默認的會使用env中配置的connection,如果需要調整,請修改Model文件。
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看