Download the PHP package inkvizytor/fluentform without Composer
On this page you can find all versions of the php package inkvizytor/fluentform. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download inkvizytor/fluentform
More information about inkvizytor/fluentform
Files in inkvizytor/fluentform
Informations about the package fluentform
Fluent Form
Form builder for Laravel 6
Main purpose of this package is to provide intuitive form creation with code autocompletion, validation and markup for Bootstrap 3 CSS framework. I strongly recommend using Laravel IDE Helper Generator for autocompletion.
Installation
Require this package with composer using the following command:
Add the service provider to the providers
array in config/app.php
:
Next at the end of config/app.php
add Fluent Form facade to the aliases
array:
And publish fluentform.php
config file:
Getting Started
Example
UserController.php
edit.blade.php
Extended example
You can preview all controls by executing Form::preview()
in your controller action:
Form layouts
Form navigation
Controls
Buttons
Tabs
Panel
Icons
Autocomplete for icons. Supported icon sets: FontAwesome, GlyphIcons.
Other
Something more
CDN support
In fluentform.php
config file you can enable or disable CDN support for Bootstrap and various other elements.
Then modify your layout.php
file to include all required styles and scripts.
If you don't like the idea of CDN you can link to your local style/script files. Then you only need to initialize javascript controls like Date/Time Picker or TinyMCE by including Fluent::scripts(false)
in the bottom of your layout.php
file.
Datetime picker
You can also change some default settings for this control in fluentform.php
config file.
Date range picker
Date Range Picker for Bootstrap
And default settings in fluentform.php
config file.
Editor
This method renders textarea replaced with TinyMCE.
In fluentform.php
config file you can change some default settings for TinyMCE.
Localization
Methods that add texts to controls can use translations. Those methods accept the same params as Laravel's trans()
helper.
Validation
By default, for client side validation FluentForm use jQuery Validation Plugin and jQuery Unobtrusive Validation.
If you prefer Parsley or formvalidation.io enable Nag validation rules converter in fluentform.php
config file.
Custom controls
If you wish to make your own custom control, you can. First create a new class that extends abstract Field
class. Example TimeZone custom class (it extends Select but Select extends Field):
Next you have to register it in fluentform.php
config file like TimeZone class is.
And then call it by it's alias name:
All arguments of this magic method are passed to constructor after $handler
. Sadly no autocomplete is available for custom controls.
License
The Fluent Form is open-sourced software licensed under the MIT license.
All versions of fluentform with dependencies
illuminate/contracts Version ^6.0|^7.0|^8.0|^9.0
illuminate/support Version ^6.0|^7.0|^8.0|^9.0