Why not just install it with composer? Try dumpautoload:
composer dumpautoload
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a site on an hosting account without SSH access so I decided to install a package manually. This package is used for Form creation. This is what I have done. First of all my Laravel version is:
const VERSION = '5.3.28';
I downloaded LaravelColletive/Html form this address: https://github.com/LaravelCollective/html, unzipped it and uploaded it to vendor folder. This is the file structure of the package:
vendor
--laravelcollective
----html
Put this line inside config/app.php
'providers' => [
....
Collective\Html\HtmlServiceProvider::class,
....
]
And also these lines
'aliases' => [
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
]
Also this line in composer.json
"require": {
"laravelcollective/html": "^5.3.*",
Upon refreshing the web page I get:
Class 'Collective\Html\HtmlServiceProvider' not found
Any idea what I am missing here?
The problem is that if you do it manually and have no way to ssh into your server, you cannot force composer to reload the class cache. I believe this is why you're getting the error you are getting. So I'm thinking you have three options:
Please or to participate in this conversation.