Tagi

#Laravel

41 Articles

Caching LLM Responses to Cut API Costs
· 10 min

Caching LLM Responses to Cut API Costs

Learn to cache LLM responses in Laravel to reduce LLM API costs, with response caching, prompt caching, TTL choices, and the traps to avoid.

How to Mock HTTP Requests in PHP Tests
· 9 min

How to Mock HTTP Requests in PHP Tests

Learn to mock HTTP requests in PHP tests with Guzzle MockHandler and Laravel Http::fake for fast, deterministic, offline test suites.

Blog