久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長(zhǎng)資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      Laravel 8.77發(fā)布,這些功能被改進(jìn)了!

      下面由Laravel教程欄目給大家介紹《Laravel 8.77發(fā)布,這些功能被改進(jìn)了》,希望對(duì)大家有所幫助!

      Laravel 團(tuán)隊(duì)發(fā)布了 8.77 版本 ,其中改進(jìn)了屬性轉(zhuǎn)換/訪問(wèn)器,請(qǐng)求 date() 方法以 DateTime 實(shí)例訪問(wèn)數(shù)據(jù),MAC 地址驗(yàn)證,在存儲(chǔ)磁盤(pán)上定義自定義臨時(shí) URL 的能力,以及 v8.x 中的最新更改分支?!就扑]:《laravel視頻教程》】

      屬性轉(zhuǎn)換/訪問(wèn)器改進(jìn)

      Taylor Otwell 提供了一種定義屬性訪問(wèn)器和修改器的新方法:

      // 之前, 兩個(gè)方法的方式 public function setTitleAttribute($value) {     $this->attributes['title'] = strtolower($value); }  // 新的方式 protected function title(): Attribute {     return new Attribute(         set: fn ($value) => strtolower($value),     ); }

      這里有一個(gè)例子同時(shí)有 get 和 set 的實(shí)現(xiàn):

      /**  * 獲取用戶的標(biāo)題  */ protected function title(): Attribute {     return new Attribute(         get: fn ($value) => strtoupper($value),         set: fn ($value) => strtolower($value),     ); }

      要了解

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)