久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

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

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

      Laravel 團隊發(fā)布了 8.77 版本 ,其中改進了屬性轉(zhuǎn)換/訪問器,請求 date() 方法以 DateTime 實例訪問數(shù)據(jù),MAC 地址驗證,在存儲磁盤上定義自定義臨時 URL 的能力,以及 v8.x 中的最新更改分支。【推薦:《laravel視頻教程》】

      屬性轉(zhuǎn)換/訪問器改進

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

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

      這里有一個例子同時有 get 和 set 的實現(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號-2    滬公網(wǎng)安備31011702889846號