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:
Step 2: After install composer
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