for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Gameap\Providers;
use Illuminate\Support\ServiceProvider;
use \Collective\Html\FormFacade as Form;
class FormServiceProvider extends ServiceProvider
{
/**
* Bootstrap the application services.
*
* @return void
*/
public function boot()
view()->composer('*', function () {
Form::component('bsInput', 'components.form.input',
['name', 'options' => []]
);
Form::component('bsText', 'components.form.text',
['name', 'value' => null, 'label' => null, 'attributes' => []]
Form::component('bsTextArea', 'components.form.textarea',
Form::component('bsEmail', 'components.form.email',
Form::component('bsPassword', 'components.form.password',
['name', 'label' => null, 'attributes' => []]
});
}