Skip to content

hidden input option #5

Description

@atmediauk

Is it possible to submit the field as a hidden input?

For example adding ->hidden() to the chain like:

            SluggableText::make('Name')
                ->rules('required'),
            Slug::make('Slug')
                ->slugUnique()
                ->slugModel(static::$model)
                ->rules('required', 'alpha_dash', 'max:80')
                ->creationRules('unique:somegroup,slug')
                ->hidden(),

I know I can do this through a custom field or by just setting the value in the model on ::saving but it would be nice to still make use of this packages rules, validation etc.

I'd like to set the value but just remove the visibility for some users.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions