2017 © Pedro Peláez
 

library laravel-btnform

create button post/delete forms

image

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

The README.md

ButtonFormBuilder

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', 
 ]);

The Versions

18/07 2017

dev-master

9999999-dev

create button post/delete forms

  Sources   Download

by farzin fthi