# 前言
紀錄 Nginx config 的細節 route 流程
Laravel 週報,針對 10.21 版本做主要更新介紹
紀錄 IPv4 CIDR 的理解,這篇專門針對 CIDR 所需的知識來解說,不會延伸到不相關的
紀錄版本主要更新
# Eloquent createOrFirst() method
10.20 新增 createOrFirst(),可以在觸發 unique constraint violation 時,重新取得 match record
紀錄 Nginx location rule
Syntax: location [ = | ~ | ~* | ^~ ] uri { ... }location @name {…
Syntax: location [ = | ~ | ~* | ^~ ] uri { ... }location @name {
紀錄 10.24 更新要項
# Allow older jobs to be faked
之前的 Queue 會使用 push method,原本沒有支援 testing 用的 fake,10.24 新增支援
# Introduce the Str::substrPos() method
在 Express.js 中建立 middleware 來 log request & response
# 目標 log 格式
目標是每個 request 都會記錄下 log, 格式如下:
# Attach req log
紀錄 10.22 主要更新要項
# ULID testing helpers
增加了一些 ULID testing helper
# Precognition testing helpers
新增 Precognition helper
# Typed Class Constants
8.2 之前,儘管 Interface 定義 constant 的型別,但在 child class 卻可以 overwrite 這個型別
從 8.3 開始, child class constant 可以 overwrite constant,但型別不可變
# The json_validate() function
紀錄 10.23 更新要項
# Add make:view Artisan command
10.23 新增了 artisan make:view command
可參考 影片
# Before/After database truncation methods
These were the top 10 stories published by Learn or Die in April of 2024. You can also dive into daily archives for April of 2024 by using the calendar at the top of this page.