Avatar 💻

recca0120 Tech Notes

Software Developer / Tech Notes

  1. Home
  2. Archives
  3. Categories
  4. Tags
  5. Search
  6. About
    1. Dark Mode

Archives

2026 25
2024 3
2023 11
2022 13
2020 15
More

Categories

PHP Laravel Frontend Testing Database DevOps Tools MacOS Windows Python

Tags

Laravel PHP Testing Javascript PHPUnit SQLite Typescript Aws Blade Composer Developer-Tools Guzzle Mockery Sql.js Validation Devops Docker Linux MacOS Migration
Featured image of post sql.js + IndexedDB: Building an Offline-First Web App
Frontend Database

sql.js + IndexedDB: Building an Offline-First Web App

Persist sql.js SQLite databases in the browser using IndexedDB to build offline-first web applications that work without a backend.

2026 年 3 月 5 日
正體中文
Sql.js SQLite IndexedDB Javascript
Featured image of post Run SQLite in the Browser with sql.js: A Complete Guide from Install to CRUD
Frontend Database

Run SQLite in the Browser with sql.js: A Complete Guide from Install to CRUD

Learn how to use sql.js to run SQLite entirely in the browser — from installation and initialization to CRUD operations, import/export, and Web Workers.

2026 年 3 月 4 日
正體中文
Sql.js SQLite Javascript WebAssembly
Featured image of post LiVue: Use Vue 3 Directives in Laravel Blade Templates
Laravel Frontend

LiVue: Use Vue 3 Directives in Laravel Blade Templates

LiVue lets you write Vue 3 directives in Blade templates without APIs or .vue files, merging Livewire server-driven architecture with the Vue ecosystem.

2026 年 3 月 3 日
正體中文
Laravel Vue.js Blade Alpine.js LiVue
Featured image of post msw-fetch-mock: Undici-Style Fetch Mocking for MSW
Testing Frontend

msw-fetch-mock: Undici-Style Fetch Mocking for MSW

Compare msw-fetch-mock, MSW, nock, fetch-mock, and 3 other HTTP mocking libraries — with architecture analysis and concrete use-case recommendations for each.

2026 年 3 月 3 日
正體中文
Testing MSW Javascript
Featured image of post VS Code PHPUnit & Pest Test Explorer: Setup Guide
Testing PHP

VS Code PHPUnit & Pest Test Explorer: Setup Guide

Set up PHPUnit & Pest Test Explorer in VS Code with Docker Compose, Laravel Sail, SSH remotes, and Xdebug debugging. Supports PHPUnit 7–12 and Pest 1–4.

2026 年 3 月 3 日
正體中文
PHPUnit Pest VS Code Docker Testing
Featured image of post PHP CSV: Convert Scientific Notation Back to Decimal
PHP

PHP CSV: Convert Scientific Notation Back to Decimal

Excel exports small decimals as 8.90E-05 scientific notation in CSV, breaking bcmul. Use sprintf with dynamic precision from the exponent to restore any float.

2024 年 7 月 16 日
正體中文
PHP
Featured image of post 3 Ways to Eliminate Duplicate HTML Blocks in Blade Templates
Laravel PHP

3 Ways to Eliminate Duplicate HTML Blocks in Blade Templates

When Blade templates have repeating HTML, choose from @include, Component, or ob_start. ob_start is the only option that requires no additional template files.

2024 年 5 月 7 日
正體中文
Laravel Blade
Featured image of post Alpine.js Plugin for Laravel AJAX Validation Errors
Frontend Laravel

Alpine.js Plugin for Laravel AJAX Validation Errors

Build an Alpine.js errors plugin that mirrors the Laravel MessageBag API, so 422 AJAX validation errors display just as easily as the @error directive.

2024 年 4 月 19 日
正體中文
Alpine.js Laravel Javascript Validation
Featured image of post Laravel Vite Assets Fail on Custom Domain? Set server.host
Laravel Frontend

Laravel Vite Assets Fail on Custom Domain? Set server.host

Laravel Vite defaults to localhost, breaking assets on custom domains. Set server.host and server.hmr.host in vite.config.js, or use valetTls for Valet HTTPS.

2023 年 3 月 20 日
正體中文
Laravel Vite
Featured image of post Get Package Versions at Runtime with Composer 2
PHP

Get Package Versions at Runtime with Composer 2

Use Composer 2's InstalledVersions::getVersion() to check package versions at runtime for feature flags or compatibility — no lock file parsing required.

2023 年 2 月 25 日
正體中文
PHP Composer
1 2 3 4 5 6 7
© 2020 - 2026 recca0120 Tech Notes
recca0120 on GitHub
Built with Hugo
Theme Stack designed by Jimmy