public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('busnumber')
->required()
->maxLength(8),
Forms\Components\Select::make('driver_id')
->relationship('driver', 'name')
->required(),
Forms\Components\TextInput::make('model')
->required()
->maxLength(65535)
->columnSpanFull(),
Forms\Components\TextInput::make('maxpax')
->required()
->numeric()
->maxLength(65535)
->columnSpanFull(),
]);
}
public static function form(Form $form): Form
{
return $form
->schema([
Forms\Components\TextInput::make('busnumber')
->required()
->maxLength(8),
Forms\Components\Select::make('driver_id')
->relationship('driver', 'name')
->required(),
Forms\Components\TextInput::make('model')
->required()
->maxLength(65535)
->columnSpanFull(),
Forms\Components\TextInput::make('maxpax')
->required()
->numeric()
->maxLength(65535)
->columnSpanFull(),
]);
}