try first an :
service apache2 restart
Or any similar command depending on your OS:
then on your Laravel folder :
composer dump-autoload
hope it helps.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi, I have been working on a local project using Laravel 5.2 with PHP 5.5.* version. Now I installed the 5.6.1 and the 7.1.9 PHP versions. When i try to start my project using the command "php artisan serve" i obtain the following error:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Class 'Collective\Html\HtmlServiceProvider' not found
I should mention that i already added "Collective\Html\HtmlServiceProvider::class," and
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
to the app.php file when i was working with the php 5.5.* version.
Best regards.
have you installed the Collective package (not just referenced it in app.php
Please or to participate in this conversation.