<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國際加速解決方案。 廣告
                ## 緩存eloquent 1. 使用composer裝配緩存包`composer require rennokki/laravel-eloquent-query-cache` 2. 在model中引入`use Rennokki\QueryCache\Traits\QueryCacheable;` 3. `use QueryCacheable;` ``` use Rennokki\QueryCache\Traits\QueryCacheable; class Podcast extends Model { use QueryCacheable; ... } ``` ## 查看數據庫查詢出來的模型是否有修改過數據 ``` $user->isDirty(); //若$user被修改過,返回true,沒有修改過返回false $user->isDirty('name'); //若email被修改過,返回true,沒有修改過返回false $user->getDirty(); //返回修改過的屬性 $user->getOriginal('name'); //查看修改前的值 ``` ## 執行存儲過程 ``` $sql='{ call Extend_TuiFei_WorkFlowShenHe_Tigger('.$tableId.') }'; $conn=DB::connection('sqlsrv'); $res = $conn->update($sql); ``` 1. 將查詢結果中的某字段作為key`keyBy` 2. `firstOrCreate`會報錯,只需在`model`中添加`protected $fillable = ['openid'];` 3. 修改`create_at`為其他字段`const CREATED_AT = 'create_time';`不需自動填充`const UPDATED_AT = null;` 4. 自定義時間格式`protected $dateFormat = 'U';` ## 軟刪除 查詢結果包含軟刪除的數據`$posts = Post::withTrashed()->get(); ` 查詢結果只包含軟刪除的數據`$posts = Post::onlyTrashed()->get();`
                  <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>

                              哎呀哎呀视频在线观看