Download the PHP package dcblogdev/laravel-blade-components without Composer
On this page you can find all versions of the php package dcblogdev/laravel-blade-components. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dcblogdev/laravel-blade-components
More information about dcblogdev/laravel-blade-components
Files in dcblogdev/laravel-blade-components
Package laravel-blade-components
Short Description Laravel Blade components collection
License MIT
Homepage https://github.com/dcblogdev/laravel-blade-components
Informations about the package laravel-blade-components
Community
There is a Discord community. https://discord.gg/VYau8hgwrm For quick help, ask questions in the appropriate channel.
Laravel Blade components collection
Re-usable Laravel Blade components for your projects
Installation
You can install the package via composer:
Usage
Form components
- Open
- Input
- Textarea
- Checkbox
- Radio
- Select
- Button
All form components accept option parameters that such as class='' style=''
When the method is set to PUT, PATCH or DELETE the @method() will be applied automatically.
Open
Defaults to post method and CSRF token
The method and actions can be passed:
Form input
Create an input with a name, the name will be used as the label as long as the label is not provided.
Outputs:
Use a label
Use an id and a class
The type is set to test by default, it can be changed
Set the input value
Form textarea
Set the rows and columns
Set the textarea data
Form checkbox
A checkbox can also be defined, set the name and value
Check the checkbox by passing its value, as long its a match the checkbox will be checked.
or
Form radio
A radio can also be defined, set the name, label and value
Pass a value which will check the matching radio.
Check the checkbox by passing its value, as long its a match the checkbox will be checked.
or
Form select
create a select menu set the name and placeholder for the initial option
Leave off the placeholder to have only the select and options that can be selected
In order to set the option an array is needed and is looped over and then a nested component is used.
Pass in the key and value from the array
Form button
Create a button, defaults to a submit type
Create a button, using only the defaults and a label
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 [email protected] instead of using the issue tracker.
Credits
- David Carr
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-blade-components with dependencies
pestphp/pest Version ^1.23|^2
pestphp/pest-plugin-laravel Version ^2.0