| Package Data | |
|---|---|
| Maintainer Username: | omnicode |
| Package Create Date: | 2017-08-12 |
| Package Last Update: | 2019-11-19 |
| Home Page: | |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-10-26 15:02:34 |
| Package Statistics | |
|---|---|
| Total Downloads: | 11,361 |
| Monthly Downloads: | 22 |
| Daily Downloads: | 0 |
| Total Stars: | 2 |
| Total Watchers: | 0 |
| Total Forks: | 1 |
| Total Open Issues: | 0 |
LaraForm is a Laravel Form wrapper with convenient methods, that includes Form Tampering protection and prevents double form submission.
At composer.json of your Laravel installation, add the following require line:
{
"require": {
"omnicode/lara-form": "~0.0"
}
}
Run composer update to add the package to your Laravel app.
At config/app.php, add the Service Provider and the Facade:
'providers' => [
// ...
'LaraForm\ServiceProvider\LaraFormServiceProvider'
]
//...
'aliases' => [
'LaraForm' => 'LaraForm\Facades\LaraForm'
]
At config/app.php, add the Service Provider and the Facade:
'providers' => [
LaraForm\ServiceProvider\LaraFormServiceProvider::class,
]
//...
'aliases' => [
'LaraForm' => LaraForm\Facades\LaraForm::class,
]
To create a simple form
{!! LaraForm::create($model, ['action' => route('posts.create') ]) !!}
{!! LaraForm::input('email') !!}
{!! LaraForm::submit('Submit') !!}
{!! LaraForm::end() !!}
LaraForm has form tampering protection, this ensures that
Please note, however, that it will not prevent adding new values to select dropdown or radio buttons - this information should be validated by Laravel Validations
It also prevents submitting the same form twice (server side implementation)
@TODO