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

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## 模型中添加修改的時候過濾數據表的字段:指定字段才能添加修改,不然報錯 ### 方法1 模型中設置可以添加修改的字段 `$fillable` ~~~ protected $fillable = ['title', 'orderlist', 'class_id', 'status', 'pic', 'imgs', 'describe', 'content',]; ~~~ - 如果數據表字段變化 則需要修改`$fillable` ## 方法2 自動設置數據表字段為過濾字段 - 所有數據表字段都能添加修改 不是數據表的字段則不能添加修改,避免報錯 - 過濾字段使用了`getFillable`方法 則在模型中修改`getFillable`方法獲取表所有的字段,如下 ~~~ // 在過濾指定表字段的時候 需要獲取指定的過濾字段$fillable 使用的就是getFillable方法直接返回設置的過濾字段 // 所以修改getFillable方法,返回這個表的所有字段 則不用在單獨每個表設置過濾字段 public function getFillable() { // 原來直接返回每個模型單獨設置的過濾字段 //return $this->fillable; // 直接返回表的所有的字段信息 $table = $this->getTable(); $columns = Schema::getColumnListing($table); unset($columns['id']); return $columns; } ~~~
                  <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>

                              哎呀哎呀视频在线观看