Lara

含有「Lara」共 15 篇內容
全部內容
發佈日期由新至舊
# Encrypt and decrypt Str helper methods 12.18 支援 fluent string chain <?php // Before $encryptedToken = str('secret-api-token') ->pipe(fn(String
最後整理時間:2025-08-01 上次整理時間:2025-07-02
# in_array_keys Validaiton Rule 12.16 新增 in_array_keys validation rule,驗證指定 array 必須包含指定 keys <?php $validator = Validator::make($request->all(), [
# Locale-aware Number Parsing 12.15 新增 Number class 新增 method,支援 parse with different locale <?php use Illuminate\Support\Number; Number::parse($s
# Arr::from() Method 12.14 新增 Arr::from(),可從多種資料結構取得 array of items <?php use Illuminate\Support\Arr; Arr::from(collect(['name' => 'Laravel'])); /
# JSON Unicode Cast Type 12.3 Eloquent Attributes 新增 json:unicode cast type,允許 JSON encoding JSON_UNESCAPED_UNICODE <?php protected $casts = [ '
# Community Starter Kit Support in laravel new 12.2 Laravel new command,新增支援 community starter kit,支援的清單可 參考 laravel new --using statamic/statamic m
# Memoized Cache Driver 12.9 新增 memo cache driver,可以對 cache 在做一層 memory cache,比如第一次從 Redis cache 撈,但在同一個 req 當中,之後都可從 PHP Process memory 當中撈 <?php C