Blade Component Scaffolder

Generate Blade component class and view with props.

Component Configuration

PascalCase name for the component

Props

Generated Files

Component Class
Blade View
Files:
  • app/View/Components/.php
  • resources/views/components/.blade.php
Usage: <x- />

Features

  • Generate Laravel Blade component class and view
  • Support for typed props with defaults
  • Automatic constructor generation
  • @props directive in view
  • Slot support

How to Use

  1. Enter your component name in PascalCase (e.g., Alert)
  2. Add props your component will accept
  3. Specify type and default value for each prop
  4. Check "has slot" if component wraps content
  5. Click "Generate Component" to create both files
  6. Use as <x-component-name /> in Blade templates