Blade Templates

Create new components

php artisan make:component [Name]

# You can create components with subdirectories
php artisan make:component [Dir]/[Name]

All components cannot have more than one element at the root. For example, they can be aggregated into a <div>

Customising the name of the tag

<aside> ⚠️ You definitely need a Class for your component

</aside>

public function boot()
{
    Blade::component([Name]::class, '[alias]');
}

You can now use <x-alias>

If you don't have used alias, it be use by : <x-[Dir].[Name]>