library laravel-btnform
create button post/delete forms
farzin/laravel-btnform
create button post/delete forms
- Tuesday, July 18, 2017
- by farzinft
- Repository
- 0 Watchers
- 1 Stars
- 1 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
A simple laravel package for generate html [post, delete] form buttons., (*1)
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',
]);
dev-master
9999999-dev
create button post/delete forms
Sources
Download
by
farzin fthi