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
erirk/paypalpayment
laravel-paypalpayment is simple package help you process direct credit card paym...
0
doctrine/dbal
Powerful PHP database abstraction layer (DBAL) with many features for database s...
628,058,007
9,707