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