<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>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                # 插件數據庫設置 ## 插件數據庫設置 ### 1、模型文件位置 - /plugins/用戶名/插件名/models ### 2、創建模型 ### 3、創建數據表 - 在 `/plugins/用戶名/插件名/models/模型名/`目錄下添加數據表信息 - 文件`columns.yaml`列表字段信息 - 文件`fields.yaml`表單字段信息 ### `columns.yaml`列表字段示例 ``` columns: title: # 字段 label: rainlab.blog::lang.post.title # 標簽 searchable: true # 搜索 relation: categories # 關聯 select: name # ?關聯值 sortable: false # 排序 invisible: true # 是否隱藏 created_at: label: rainlab.blog::lang.post.created type: date invisible: true ``` ### `fields.yaml`表單字段示例 ``` fields: title: # 字段 label: rainlab.blog::lang.post.title # 標簽 span: left # 位置 靠右 placeholder: rainlab.blog::lang.post.title_placeholder # placeholder 提示 slug: label: rainlab.blog::lang.post.slug span: right placeholder: rainlab.blog::lang.post.slug_placeholder preset: field: title type: slug toolbar: type: partial path: post_toolbar cssClass: collapse-visible ``` ### 模型文件示例 ``` namespace Wang\Tes2\Models; use Model; class Notices extends Model { // 需要引入的 use \October\Rain\Database\Traits\Validation; //默認情況下禁用時間戳。 //如果在數據庫表中定義了時間戳,請刪除此行。 public $timestamps = false; // 數據表 public $table = 'wang_test1_notcie'; // 表單驗證規則 public $rules = [ ]; } ```
                  <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>

                              哎呀哎呀视频在线观看