繼續閱讀 “change STOPSIGNAL back to SIGTERM and use dumb-init to rewrite to SIGWINCH for apach2″
[Laravel] 解決 Unknown column type “enum"
由於舊版的 Laravel 沒有支援enum的更新 https://laravel.com/docs/8.x/migrations#updating-column-attributes
所以在執行 php artisan migrate 會出現錯誤
繼續閱讀 “[Laravel] 解決 Unknown column type “enum""[Laravel] 關於 QUEUE_DRIVER=database 引發 1213 Deadlock 的排查
因爲 jobs 的數量變大後, 想說加開 worker 因應, 卻引發 jobs之間的 Deadlock .
當時的專案是 5.2 升級到 8 , 資料庫版本是 mariadb 10.6.9
繼續閱讀 “[Laravel] 關於 QUEUE_DRIVER=database 引發 1213 Deadlock 的排查"[Laravel] Stripe checkout.js – passing token
[Laravel] How to Use Macro in Laravel Http::Pool?
Laravel 的 Http 有提供 Macroable 可以自定義
繼續閱讀 “[Laravel] How to Use Macro in Laravel Http::Pool?"[Laravel] Add SMTP logging
- app/Providers/AppServiceProvider.php
[Laravel] Laravel-activitylog inegrate activity log with mongodb
0. composer require jenssegers/mongodb
繼續閱讀 “[Laravel] Laravel-activitylog inegrate activity log with mongodb"[Mysql] Run large MySQL UPDATE and DELETE queries with small batches to prevent table/row-level locks
Updating or deleting a large amount of rows in MySQL will create locks that will paralyze other queries running in parallel.
This tool will run UPDATE and DELETE queries in small batches to prevent table-level and row-level locking (with InnoDB). If a large number of rows has to be updated or deleted, it is also possible to limit the number of rows selected at once.
[Composer] Strategy to override a class in a library installed with Composer
After we use the package, we want a small extension, so submit a [PR](https://github.com/babenkoivan/elastic-adapter/issues/26). When the PR is not sure whether to merge. Find some ways to modify
繼續閱讀 “[Composer] Strategy to override a class in a library installed with Composer"[PHP] Generate the AWS Console URLs for CloudWatch Log Group filters
I would like to send my bot directly to a specific log group and filter but I need to be able to generate the proper URL format.
I started to check the “stackoverflow" website to find related solutions, and finally found one … But no PHP version.
繼續閱讀 “[PHP] Generate the AWS Console URLs for CloudWatch Log Group filters"