farzin/laravel-btnform
ButtonFormBuilder
A simple laravel package for generate html [post, delete] form buttons.
Usage:
// Add Facade
'aliases' => [
.
.
'BtnForm' => Farzin\BtnFormBuilder\BtnForm::class
];
Examples:
Post Method
BtnForm::post([
'text' => 'Button Text!',
'action' => FormActionUrl, //Form Action Url
'fa' => 'check', //fontawesome icon
'class' => 'btn btn-info btn-xs',
'onclick' => "return confirm('sure?')"
.
.
//You Can Add Any Attribute For Button
]);
//Delete Method
BtnForm::delete([
'text' => 'Button Text!',
'action' => FormActionUrl, //Form Action Url
'fa' => 'check', //fontawesome icon
'class' => 'btn btn-info btn-xs',
]);
Related Packages
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
648,266,899
9,701
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
429,221,767
607
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
403,217,078
4,664