farzin / laravel-btnform
create button post/delete forms
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/farzin/laravel-btnform
This package is auto-updated.
Last update: 2025-09-18 05:00:41 UTC
README
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', ]);