Roy-Try-Catch

The Roy Deploy

RequestResponse 的技術實踐


專注於後端維運架構

【監控】Laravel Telescope 完整指南:安裝、設定與實戰排查

前言 當 Laravel 應用在生產環境出現效能問題,你第一個想到的工具是什麼?Log?dd()?還是靠感覺猜?有了 Laravel Telescope,你可以像有透視眼一樣,清楚看到...

Roy • 2026-02-26 • 0 comments

【MySQL】Index 設計與 EXPLAIN 分析實戰

本篇介紹 MySQL Index 的設計原則,以及如何透過 EXPLAIN 分析 SQL 查詢效能,找出慢查詢的根本原因。 為什麼需要 Index? 當資料表有 100 萬筆資料,沒有 Inde...

Roy • 2026-02-26 • 0 comments

【Docker】Docker Compose 搭建多 PHP 版本開發環境 (5.6/7.2/7.4/8.1/8.2)

本篇介紹如何利用 Docker Compose 搭建支援多個 PHP 版本(5.6 / 7.2 / 7.4 / 8.1 / 8.2)的本地開發環境,並透過 Nginx 依站台切換 PHP 版本。 為什麼需要多 P...

Roy • 2026-02-26 • 0 comments

【Laravel】whereIn is slow or empty data

A quick fix for Laravel’s slow whereIn Laravel 使用ORM時,時常用到whereIn的function,近期在使用上資料量太龐大造成whereIn進去的array數量很大,直...

Roy • 2023-01-07 • 0 comments

【Linux】檢查硬碟使用空間

朋友的網站忽然網站掛掉 於是我連上vm 使用 df -h 查看 原來是硬碟滿了的問題 Step.1 嘗試清除暫存檔案 sudo apt-get autoclean sudo apt-get clean...

Roy • 2022-08-16 • 1 comments

【Mysql】Phpmyadmin部署於Ubuntu

本篇介紹如何在 Ubuntu Linux 的環境中,安裝PhpMyAdmin套件於網頁中顯示。 # 更新系統套件 sudo apt updatet # 安裝phpmyadmin sudo apt install phpmyadmi...

Roy • 2021-09-03 • 0 comments

【Laravel】Laravel部署於Ubuntu (Nginx,MariaDB)

本篇介紹如何在 Ubuntu Linux 的環境中,安裝 Nginx 伺服器、MariaDB 資料庫,打造 PHP 架構開發與佈署環境。 # 更新系統套件 sudo apt update sudo apt dist-u...

Roy • 2021-09-02 • 2 comments