laraflow/form
is a collection of Laravel Collective/HTML components.
it was initially planed to create only Bootstrap4 form element styles.
This package has basic form element style that is supported by bootstrap. Some basic form styles are given below:
- Normal
- Icon Input Grouped
- Horizontal Columned
- Inline Elements
To get start using this package follow these instructions. You can install the package via composer:
composer require laraflow/form
You need to publish the config file with:
php artisan vendor:publish --tag="form-config"
This is the contents of the published config file:
return [
/**
* Form style validation and other component will
* be selected form this section
* @var string style
* @value bootstrap3, bootstrap4, bootstrap5
*/
'style' => 'bootstrap4',
/**
* Form local language for field that support localization
*
* @reference month, day etc
* @var string style
* @value bootstrap3, bootstrap4, bootstrap5
*/
'locale' => 'en',
/**
* Form month values what value and label month dropdown
* will have
*
* @var array month
*/
'months' => [
"1" => "January",
"2" => "February",
"3" => "March",
"4" => "April",
"5" => "May",
"6" => "June",
"7" => "July",
"8" => "August",
"9" => "September",
"10" => "October",
"11" => "November",
"12" => "December"
],
/**
* Form day values what value and label day dropdown
* will have
* @var array month
*/
'days' => [
"1" => "Saturday",
"2" => "Sunday",
"3" => "Monday",
"4" => "Tuesday",
"5" => "Wednesday",
"6" => "Thursday",
"7" => "Friday"
],
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="form-views"
Done. Now you can fully utilize every form elements from these package
Thank you for considering contributing to the Form! The contribution guide can be found in the Form Wiki.
If you discover a security vulnerability within Form Package, please send an e-mail to Mohammad Hafijul Islam via [email protected]. All security vulnerabilities will be promptly addressed.
The Form is open-sourced software licensed under the MIT license.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
Spacial Thanks to For Awesome IDE support.
The MIT License (MIT). Please see License File for more information.