--- name: volt-development description: "Develops single-file Livewire components with Volt. Activates when creating Volt components, converting Livewire to Volt, working with @volt directive, functional or class-based Volt APIs; or when the user mentions Volt, single-file components, functional Livewire, or inline component logic in Blade files." license: MIT metadata: author: laravel --- @php /** @var \Laravel\Boost\Install\GuidelineAssist $assist */ @endphp # Volt development ## Documentation Use `search-docs` for detailed Volt patterns and documentation. ## Basic usage Create components with `{{ $assist->artisanCommand('make:volt [name] [--test] [--pest]') }}`. Important: Before creating a Volt component, check whether the existing ones use the functional or class-based style. ### Functional components @boostsnippet("Volt Functional Component", "php") @@volt Fatal error: Uncaught Error: Call to undefined function Livewire\Volt\state() in /usr/home/eskul-cloud/domains/eskul.pl/public_html/vendor/laravel/boost/.ai/volt/skill/volt-development/SKILL.blade.php:30 Stack trace: #0 {main} thrown in /usr/home/eskul-cloud/domains/eskul.pl/public_html/vendor/laravel/boost/.ai/volt/skill/volt-development/SKILL.blade.php on line 30