for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Xetaravel\Providers;
use Collective\Html\FormFacade as Form;
use Illuminate\Support\ServiceProvider;
class FormServiceProvider extends ServiceProvider
{
/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
// Collective Form
Form::component('bsText', 'components.form.text', [
'name',
'label' => null,
'value' => null,
'attributes' => [],
'labelClass' => 'form-control-label'
]);
Form::component('bsEmail', 'components.form.email', [
'attributes' => []
Form::component('bsTextarea', 'components.form.textarea', [
Form::component('bsPassword', 'components.form.password', ['name', 'label' => null, 'attributes' => []]);
Form::component('bsCheckbox', 'components.form.checkbox', [
'value' => 1,
'checked' => null,
Form::component('bsInputGroup', 'components.form.input-group', [
Form::component('bsSelect', 'components.form.select', [
'list' => [],
'selected' => null,
}