farzin/laravel-btnform

create button post/delete forms
8 1
Install
composer require farzin/laravel-btnform
Last Updated:Jul 18, 2017
Links: GitHub  ·  Packagist
Maintainer: farzinft

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/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
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