farzin/laravel-btnform

There is no license information available for the latest version (dev-master) of this package.

create button post/delete forms

dev-master 2017-07-18 08:09 UTC

This package is auto-updated.

Last update: 2021-01-17 18:51:39 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', 
 ]);