~/beer-and-code
▪ next event Workshop: Jev na Prática para Devs · 14 Oct · 19h — duração de 2h a 3h, ao vivo via Google Meet save your seat ›
~ / tutorials $ ls -la

Tutorials

Practical step-by-step guides on Laravel, Filament, and the PHP ecosystem.

19 tutorials
13 #laravel · #php
Laravel AI SDK vs Prism PHP: Which One to Use in Each Case

The internet treats the Laravel AI SDK and Prism PHP as competitors and keeps repeating that the official SDK uses Prism under the hood. The composer.json says otherwise. In this post: what each package actually does, the code side by side, the table of what only exists in one of them, the release cadence of both, and a decision guide by concrete case. No "it depends".

20 Aug · 4 min ›
14 #laravel · #php
What Is the Laravel AI SDK: A Practical Guide to Laravel's Native AI SDK

The Laravel AI SDK is Laravel's first-party AI package: agents as PHP classes, tool calling, structured output, streaming, embeddings with pgvector and fakes for testing without burning tokens. A practical guide from composer require to your first running agent, covering what the SDK solves, what it doesn't, and the limitations nobody tells you about.

18 Aug · 5 min ›
15 #cache · #contexto
How to Save Tokens in Claude Code, Codex, and Cursor: Stop Breaking the Cache

You send a one-line question and /usage reports a whole day's worth of consumption. Saving tokens in a coding assistant has nothing to do with prompt size: it's about prefix caching. How it works in Claude Code, Codex, and Cursor, the seven actions that invalidate it without you noticing, how to measure it with cache_read vs cache_creation, and eight levers to stretch the session.

06 Aug · 16 min ›
16 #openai · #boas-praticas
10 Codex Best Practices (Straight from the Official Documentation)

We combed through the new official Codex documentation (learn.chatgpt.com) and boiled it down to the 10 best practices OpenAI itself recommends: outcome-first prompting, a living AGENTS.md, restrictive permissions, model selection, skills, cloud, and automation.

26 Jul · 8 min ›
17 #ia · #llm
How to Run an LLM Locally: Step by Step with Ollama in 2 Commands (No GPU)

A step-by-step guide to running an LLM locally with Ollama: install it, run qwen3:8b in 2 commands, and plug it into your code through the OpenAI-compatible endpoint. It runs on 8 GB of RAM with no GPU required. As a bonus, the VRAM math by model size and when local beats the API.

22 Jul · 9 min ›
18 #tool-use · #llm-as-a-judge
Code Review Prompt: 5 Patterns That Raise Signal from 12% to 67%

An LLM code review prompt your team will actually read: five patterns (diff-anchored, severity gate, tool use before guessing, mandatory citation, and self-grading with a threshold) that raise the signal ratio from ~20% to above 60%. Comes with a complete REVIEW.md and a GitHub Actions workflow ready to plug into a Laravel project.

24 May · 15 min ›
19 #laravel · #php
Spec-Driven Development: A Practical Guide from PRD to Code

Vibe coding with an agent in Laravel works until the feature has business rules. Then the agent makes things up. Spec-Driven Development fixes that by turning the specification into the source of truth. In this post we walk through the PRD, spec, plan, tasks, code and tests cycle on a feature that looks silly: exporting a sales report as a PDF. PHP stack, Claude Code and Spec Kit, from scratch.

04 May · 13 min ›
Meet the Clã Beer and Code
playing