Download the PHP package core-system/bootstrap-form without Composer
On this page you can find all versions of the php package core-system/bootstrap-form. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download core-system/bootstrap-form
More information about core-system/bootstrap-form
Files in core-system/bootstrap-form
Package bootstrap-form
Short Description Laravel Collective 5 based Twitter Bootstrap 3 Form service.
License GPL-3.0+
Informations about the package bootstrap-form
CORE-SYSTEM BOOTSTRAP FORM
This is a standalone part of core-system
application for Laravel 5 Framework.
CORE-SYSTEM is Laravel 5 based application
CORE-SYSTEM Bootstrap Form contains laravel-collective/html
extension for simple Twitter Bootstrap 3 form generation and and request validation error handling.
Summary
- Requirements and dependencies
- Installation
- Usage
Licence
GPL-3.0+
Requirements and dependencies
This package uses composer
to installing dependencies
Composer
- "php": ">=5.5.9"
- "laravel/laravel": "^5.2"
- "laravelcollective/html": "^5.0"
Installation
Run terminal. Go to your web projects root directory and type following composer create-project
command and install new installation of Laravel Framework
Skip this command if you have Laravel framework already installed
$ composer create-project laravel/laravel your-project-name --prefer-dist
Open composer.json
file located in your project folder and add following lines to require
key
For
laravelcollective/html - 5.3
and bellow versions please use"core-system/bootstrap-form": "1.0.*"
because there is some changes inlaravelcollective/html
API between5.3
and5.4
release
Run composer update
command
Go to your Laravel config/app.php
and add this line to your providers
key
and following line to aliases
key to register Laravel Collective form facade
If you need you can config control and error class publish vendor config file
Usage
In Blade templates you can use this extensions as standard Laravel Collective Form.
Form methods
create
<form>
tag with given attributes and<input type="hidden">
for Laravel cross site request forgery protectioncreate
</form>
closing tagcreate opening
.form-group
element with given attributesclose cloning tag for actually opened
.form-group
elementcreate
<input>
fieldcreate
<select>
fieldcreate plain
<input>
fieldcreate plain
<select>
fieldcreate
<input type="checkbox">
fieldcreate
<input type="radio">
fieldcreate in-line
<input type="checkbox">
fieldcreate in-line
<input type="radio">
fieldcreate
<textarea>
fieldcreate plain
<textarea>
field
Basic Blade template usage example
Validation
U can use standard Laravel request validation methods. Package render error classes for Twitter Bootstrap 3 automatically.
Laravel 5 request validation example
Create new request class file via php artisan make:request <className>
command
$ php artisan make:request LoginFormRequest
In created LoginFormRequest.php
file which is located in your app/Http/Requests
folder change content to following lines
And in you controller add request to post action parameters via Laravel 5 dependency injection