codanux / components
Laravel Form Components
v0.0.1
2021-03-16 09:16 UTC
Requires
- php: ^7.3
- illuminate/support: ^v8.0
Requires (Dev)
- orchestra/testbench: ^6.3
- phpunit/phpunit: ^8.0
README
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.
Installation
You can install the package via composer:
composer require codanux/components
Configuration
php artisan vendor:publish --provider="Codanux\Components\ComponentsServiceProvider"
Components
<x-input label="Name" name="name" class="m-2" type="text" /> <x-textarea label="Body" name="body" rows="4" /> <x-radio :options="[1 => 'First', 2 => 'Two']" label="Radio" name="radio"/> <x-select :options="[1 => 'First', 2 => 'Two']" label="Select" name="select"/> <x-checkboxes :options="[1 => 'First', 2 => 'Two']" label="Checkboxes" name="checkboxes[]"/>
Component Attributes
Label or Error customize "{field}-{attribute}" match field attributes attach <x-input label-id="label_1" label-class="mb-2" /> <x-textarea label-class="mb-2" error-id="error_1" error-class="mt-2" />
Testing
composer test
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email codanux@hotmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
Laravel Package Boilerplate
This package was generated using the Laravel Package Boilerplate.# components