laravel collective/html not working in Laravel 5.5 or above

Collective/html not working while creating the form into the laravel then require a laravelcollective/html to install into the laravel and add providers and aliases into the config/app.php to works

 Step 1: Install from Command:

composer require laravelcollective/html



Step 2: After install  composer 
you have to add providers and aliases in config/app.php file,
Then add these lines in config/app.php


'providers' => [
    // ...
    Collective\Html\HtmlServiceProvider::class,
    // ...
],

'aliases' => [
    // ...
   'Form' => Collective\Html\FormFacade::class,
   'Html' => Collective\Html\HtmlFacade::class,
    // ...
],

Now, run command php artisan serve


No comments:

Post a Comment

how to call ssh from vs code

 To call SSH from VS Code, you can use the built-in Remote Development extension. This extension allows you to open a remote folder or works...