<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使用命令創建Model文件** ~~~ php artisan make:model Logic\TsAccount -m make:model是創建model的命令, Logic是文件夾名即空間名 TsAccount是文件名稱,采用駱駝命名法 -m是自動創建一個牽引文件 ~~~ 見圖: ![](https://box.kancloud.cn/b8e9949fcb311c631d618dbb57e5c475_664x71.png) ![](https://box.kancloud.cn/8a384b735f418fe3cbd08bc14c38bb09_471x162.png) **2.實現自動維護時間和指點表名和主鍵** ~~~ namespace App\Logic; use Illuminate\Database\Eloquent\Model; class TsAccount extends Model { //表名 protected $table = 'ts_account'; //主鍵ID protected $primaryKey = 'user_id'; //是否允許批量修改 protected $fillable = ['user_name', 'pass', 'salt', 'sex']; //相當于黑名單 protected $guarded = []; //自動維護時間字段 public $timestamps = true; /** * 獲取當前時間 * @return int */ public function freshTimestamp() { return time(); } /** * 避免轉換時間戳為時間字符串 * @param \DateTime|int $value * @return \DateTime|int */ public function fromDateTime($value) { return $value; } /** * 從數據庫獲取的為獲取時間戳格式 * @return string */ protected function getDateFormat() { return 'U'; } } ~~~
                  <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>

                              哎呀哎呀视频在线观看