// 40 tips tagged "laravel"
Generate complete SEO meta tags, OpenGraph properties, and Twitter Card markup for all your pages using a reusable helper Claude builds from your routes.
Let Claude write custom PHPStan and Larastan rules that enforce your team's conventions, complete with AST visitor logic and config registration.
Scaffold single-database or database-per-tenant multi-tenancy in Laravel with global scopes, middleware, queue context, and tenant-aware caching.
Fat controllers are where good architecture goes to die — paste yours into Claude and ask it to extract the business logic into a proper service layer.
Soft deletes let you recover accidentally deleted records and maintain audit trails — Claude handles the migration, model changes, and query scoping in one shot.
Install the laravel-best-practices Boost skill to equip your AI agent with 100+ curated Laravel conventions, so it generates idiomatic code by default.
Real-time features feel complex but Claude can wire up WebSocket connections, rooms, and broadcast events for your stack faster than reading the docs.
Printf debugging doesn't belong in production. Claude can wire up structured JSON logging with request context, log levels, and external service routing in minutes.
PHP 8.1 backed enums are cleaner than constants — but scaffolding them with helpers, labels, and Eloquent casts is boilerplate Claude can write instantly.
Stop hand-crafting complex SQL — describe the logic you need and let Claude write the view or stored procedure, complete with a migration file.
Offset pagination breaks at scale. Cursor-based pagination is the right approach — and Claude can implement it in any framework from a plain-English description.
Paste your Eloquent model into Claude and get back a complete Filament v3 resource with form fields, table columns, filters, and a RelationManager stub.