use Filament\Forms\Components\SpatieTagsInput;
Forms\Components\Section::make('Recipe Tags')
->schema([
SpatieTagsInput::make('tags')
->regex('/^[a-z0-9_\-]+$/')
->validationMessages([
'regex' => 'The :attribute format should be lowercase, numbers, underscores, and hyphens only.',
])
->type('recipe'),
]),
use Filament\Forms\Components\SpatieTagsInput;
Forms\Components\Section::make('Recipe Tags')
->schema([
SpatieTagsInput::make('tags')
->regex('/^[a-z0-9_\-]+$/')
->validationMessages([
'regex' => 'The :attribute format should be lowercase, numbers, underscores, and hyphens only.',
])
->type('recipe'),
]),