vesperabr / laravel-components
A set of useful Laravel components
1.0.0
2021-10-01 11:45 UTC
Requires
- php: ^7.3|^8.0
- illuminate/support: ^7.0|^8.0
- vesperabr/laravel-data-binder: ^1.0
Requires (Dev)
- orchestra/testbench: ^6.20
- phpunit/phpunit: ^9.4.4
This package is auto-updated.
Last update: 2025-03-29 01:02:19 UTC
README
The vesperabr/laravel-components
package add a set of useful components to your Laravel app.
Installation
You can install the package via composer:
$ composer require vesperabr/laravel-components
The package will automatically register itself.
Components
Form
<x-form> ... </x-form>
Attributes
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 |
Input
<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 |
Label
<x-label required> Nome </x-label>
Attributes
Name | Default | Options | Notes |
---|---|---|---|
required | If present, show an * after the text |
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.