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...
637,827,751
9,703
laravel/serializable-closure
Laravel Serializable Closure provides an easy and secure way to serialize closur...
413,412,504
609
nunomaduro/collision
Cli error handling for console/command-line PHP applications.
394,964,158
4,660