I am using a third party library and locally, I installed everything using the steps that they provided.
- I ran
composer require
on the package and ran an update. This installed into thevendor
folder. - I then added the path into the
provider
inconfig/app
and also as an aliases.. - I ran
php artisan vendor:publish --provider="Spatie\LaravelAnalytics\LaravelAnalyticsServiceProvider"
the config file created successfully and I had no problems. I then uploaded to the production environment and kept on getting
Class 'LaravelAnalytics' not found
and I can't seem to figure out the problem..I ran
php artisan vendor:publish --provider="Spatie\LaravelAnalytics\LaravelAnalyticsServiceProvider"
But I kept on getting: Nothing to publish for tag [].
which has lead me to thinking that this could be the problem since the package is not published.
My local environment is Ubuntu and my production Environment is CentOS.. If I try to CD into that directory on my production environment it says cannot find.
Could this therefore be a problem with the case sensitive on how I am adding my providers that is not picking up this package?
are you using cached config files ? try using
and retry
You have to save all for the project before (php artisan vendor:publish).