Download the PHP package bewarhizirvan/laravel-form without Composer
On this page you can find all versions of the php package bewarhizirvan/laravel-form. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bewarhizirvan/laravel-form
More information about bewarhizirvan/laravel-form
Files in bewarhizirvan/laravel-form
Package laravel-form
Short Description A Form generator for Laravel
License MIT
Homepage https://github.com/bewarhizirvan/laravel-form
Informations about the package laravel-form
LaravelForm
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
Usage
For initiating new form
$parameters must be an array and is optional, all keys are optional
title : Form Title
name : Form name
method : Form method { get, post (default), put, patch } class : Form class
role : Form role
dir : Form direction { right, left (default) }
id : Form id
file : if you set a value to it , the Form will have enctype="multipart/form-data"
submit : Form submit button title, if you set it to 'none' it will be removed
back_url : Form Back button URL, if you set it to 'none' it will be removedFor form action One of these you can use {default is ''}
url : Full URL
route : Route { only route string or array Laravel Style }
action : Action { only action string or array Laravel Style }
Functions
For all function if $label = null, the the function will set $label = trans("db.$name")
For addTable function $table_data will be
When finished do bellow
the above step will generate an html code
Example form
Static Function
The above function will check the $request for back_url, if it is set it will redirect to it else it will redirect to the provided route
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details and a todolist.
Credits
- Bewar Hizirvan
- All Contributors
License
MIT. Please see the license file for more information.