(2/2) Errorexception Method bsText does not exist

Asked

Viewed 30 times

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!

1 answer

-1

App\Providers\FormServiceProvider::class,

That line solved.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.