The vesperabr/laravel-components
package add a set of useful components to your Laravel app.
You can install the package via composer:
$ composer require vesperabr/laravel-components
The package will automatically register itself.
<x-form>
...
</x-form>
Name | Default | Notes |
---|---|---|
method | POST | |
multipart | If present, control the form enctype to support file uploads | |
bind | Define the values that will be binded | |
bag | default | Define the error bag name |
<x-input label="Nome" name="nome" required />
Name | Default | Notes |
---|---|---|
label | ||
type | text | |
name | ||
id | name attribute (if present) | |
prepend | ||
append | ||
show-errors | If present, show the validation errors | |
bag | Define the error bag name | |
bind | Override the bind values for the current input | |
value | If provided, it will take precedence over the binded value |
<x-label required>
Nome
</x-label>
Name | Default | Options | Notes |
---|---|---|---|
required | If present, show an * after the text |
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.