0
I’m using Laravel 5.4 Chatter Package Forum and Laravel Collective, and I noticed myself with this error
****(2/2) Errorexception Method bsText does not exist.****
I followed the following procedure to use Laravel Collective in the project.
STEPS TO USE LARAVEL COLLECTIVE
0-> Require Collective via console Composer require laravelcollective/html 5.4.0
1-> ADD ALIASES
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
2-> ADD Collective to providder
Collective\Html\HtmlServiceProvider::class,
3-> Include the Forms in the Form Service Provider boot after creating this template
public function boot()
{
Form::component('bsText', 'components.form.text', ['name', 'value' => null, 'attributes' => []]);
Form::component('bsTextArea', 'components.form.textarea', ['name', 'value' => null, 'attributes' => []]);
Form::component('bsSubmit', 'components.form.submit', ['value' => 'Submit', 'attributes' => []]);
Form::component('hidden', 'components.form.hidden', ['name', 'value' => null, 'attributes' => []]);
}
4-> Include components in the view Components/form/ Hidden Submit text textarea
5-> Include injection use Form; in Formserviceprovider
I would like help to resolve this error! obr!
– Gavin