Back to Rules
PHP

Laravel Livewire TailwindCSS DaisyUI Best Practices Checklist for Tall Stack

Claude Directory November 29, 2025
0 copies 4 downloads

Boost your Tall Stack development with this actionable checklist of Laravel, Livewire, Alpine.js, TailwindCSS, and DaisyUI guidelines for clean, efficient, and scalable PHP web apps.

Rule Content
**Core Development Principles**
- Deliver precise, compact code snippets showcasing PHP and Livewire implementations.
- Build modular, component-driven apps leveraging Laravel's modern tools.
- Adhere to Laravel/Livewire conventions and SOLID design patterns.
- Prioritize reusable code through loops and modules to avoid repetition.
- Choose clear, descriptive names for variables, methods, and components.
- Organize directories in kebab-case (e.g., app/Http/Livewire).
- Rely on dependency injection and Laravel's service container.

**PHP & Laravel Guidelines**
- Leverage PHP 8.1+ syntax like typed properties and match statements.
- Comply with PSR-12 standards for code formatting.
- Always include `declare(strict_types=1);` at file tops.
- Harness Laravel 11 helpers, features, and optimizations.
- Manage errors via Laravel's handlers, logs, and custom exceptions.
- Apply try-catch for anticipated errors.
- Validate inputs with Laravel's request and form validation.
- Filter requests using middleware.
- Query databases with Eloquent ORM; use query builder for advanced cases.
- Maintain data with migrations and seeders.

**Livewire Optimization Checklist**
- Deploy Livewire for interactive, real-time UI elements.
- Utilize lifecycle hooks, reactive properties, and actions for state.
- Adopt Livewire 3.5+ for enhanced performance and reactivity.
- Integrate Blade views with directives like wire:model.
- Manage forms and state via properties and methods.
- Add user feedback with wire:loading and wire:target.
- Secure components following Livewire protocols.

**TailwindCSS & DaisyUI Styling Rules**
- Apply utility classes for component styling.
- Accelerate UI with DaisyUI's ready-made elements.
- Maintain uniform themes and design system.
- Ensure mobile-first responsiveness and dark mode support.
- Incorporate accessibility via ARIA labels and semantics.

**Key Dependencies**
- Laravel 11+ as core framework.
- Livewire 3.5+ for reactivity.
- Alpine.js for simple JS behaviors.
- TailwindCSS for utilities.
- DaisyUI for components/themes.
- Composer for PHP packages; NPM/Yarn for assets.

**Advanced Laravel Best Practices**
- Prefer Eloquent over raw SQL; implement repositories.
- Use built-in auth, authz, caching, queues, and schedulers.
- Test with PHPUnit and Dusk.
- Version APIs properly.
- Support localization and CSRF security.
- Compile assets via Vite.
- Index databases, paginate results, and use transactions.
- Decompose UIs into reusable Livewire components.
- Decouple logic with events/listeners.
- Validate via Form Requests.
- Define Eloquent relationships.
- Transform API responses with resources.
- Style consistently with Tailwind/DaisyUI; enhance with Alpine.js.

Comments

More Rules

View all
AI/ML

GLM-4.7 Optimized Config & System Prompt Designer

Expert system prompt for designing high-performance configurations tailored to GLM-4.7's strengths in coding, reasoning, tool use, and multilingual tasks, backed by benchmarks like SWE-bench and τ²-Bench.

C
Community
AI/ML

GLM-4.7 Open-Source Coding Expert: Optimized System Prompt

Leverage GLM-4.7's top benchmarks in SWE-bench, LiveCodeBench, and more with this system prompt designed for generating clean, secure, open-source-ready code, stunning UIs, and agentic workflows.

C
Community
AI/ML

GLM-4.7 Optimized Coding Agent

This system prompt transforms an AI into GLM-4.7, a benchmark-leading coding agent excelling in agentic workflows, tool use, multilingual coding, and complex reasoning with verified best practices for production-ready open-source development.

C
Community
DevOps

Agentic Dev Loop: Autonomous Jira-Driven Coding Agent with GitHub CI Self-Healing

Ralph, a persistent autonomous AI agent, implements Jira tickets through an endless loop until 100% test success, with GitHub PRs, Jules AI reviews, and CI self-healing for reliable development workflows.

C
Claude Directory
AI/ML

Türk Hukuku Uzmanı AI Agent: Güvenilir Yasal Danışman System Prompt

Claude'u Türk hukuku alanında dünyanın en önde gelen uzmanı olarak yapılandıran, yapılandırılmış yanıtlar, zorunlu uyarılar ve etik sınırlarla donatılmış profesyonel AI agent promptu.

C
Community
Database

PostgreSQL Best Practices: Expert Subagent Guide

Expert subagent providing production-ready PostgreSQL guidance on schema design, query optimization, security, performance tuning, and administration with structured, actionable advice and official references.

C
Claude Directory