21 lines
445 B
PHP
21 lines
445 B
PHP
<?php
|
|
|
|
namespace App\Filament\Resources\Ingredients\Schemas;
|
|
|
|
use Filament\Forms\Components\TextInput;
|
|
use Filament\Schemas\Schema;
|
|
|
|
class IngredientForm
|
|
{
|
|
public static function configure(Schema $schema): Schema
|
|
{
|
|
return $schema
|
|
->components([
|
|
TextInput::make('name')
|
|
->label('Nazwa')
|
|
->required()
|
|
->maxLength(255),
|
|
]);
|
|
}
|
|
}
|