laravel:blade-components-and-layouts

Blade Components and Layouts

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "laravel:blade-components-and-layouts" with this command: npx skills add jpcaparas/superpowers-laravel/jpcaparas-superpowers-laravel-laravel-blade-components-and-layouts

Blade Components and Layouts

Encapsulate markup and behavior with components; prefer slots over includes.

Commands

sail artisan make:component Alert # or: php artisan make:component Alert

// Use component <x-alert type="warning" :message="$msg" class="mb-4" />

// Layouts + stacks @extends('layouts.app') @push('scripts') <script>/* page script */</script> @endpush

Patterns

  • Keep components dumb: pass data in, emit markup out

  • Use merge() to honor passed classes/attributes in components

  • Prefer named slots for readability

  • Extract small, reusable atoms rather than giant organisms

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

laravel:routes-best-practices

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:queues-and-horizon

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:quality-checks

No summary provided by upstream source.

Repository SourceNeeds Review
General

laravel:tdd-with-pest

No summary provided by upstream source.

Repository SourceNeeds Review