Ray-avatar-img

Ray

0 位追蹤者

Ray

0 位追蹤者
分享讓我感覺自我良好,自己不是一個廢物,對人類有貢獻
avatar-img
Learn or Die
0會員
16內容數
分享程式技術
全部內容
由新到舊
# Encrypt and decrypt Str helper methods 12.18 支援 fluent string chain <?php // Before $encryptedToken = str('secret-api-token') ->pipe(fn(String
# 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'])); /
# 安裝 npm install -g typescript # 編譯 使用框架如 NextJS 時,框架會自動執行 TS 編譯 tsc hello.ts # Hello TypeScript 範例:function sayHello(person: string) { retu
# JSON Unicode Cast Type 12.3 Eloquent Attributes 新增 json:unicode cast type,允許 JSON encoding JSON_UNESCAPED_UNICODE <?php protected $casts = [ '
# 安裝 npm install -g typescript # 編譯 使用框架如 NextJS 時,框架會自動執行 TS 編譯 tsc hello.ts # Hello TypeScript 範例:function sayHello(person: string) { retu
在 Next.js 中有四種方法可以在 routes 之間導航: 使用 <Link> component 使用 useRouter hook(用於 Client Components) 使用 redirect 函數(用於 Server Components) 使用原生的 History AP
Thumbnail
# Community Starter Kit Support in laravel new 12.2 Laravel new command,新增支援 community starter kit,支援的清單可 參考 laravel new --using statamic/statamic m
# 建立 Routes Next.js 使用基於檔案系統的路由器,資料夾用來定義 routes。 每個資料夾代表一個 route segment,對應到一個 URL segment。 要建立 nested routes,可以將資料夾彼此巢狀。 使用特殊的 page.js 檔案來讓 rou
Thumbnail