Issue
This provider is completely working fine on the local machine. This issue occurs only on the server. I had created a Custom Teamwork service provider Also register on app/config as below - App\Providers\TeamWorkServiceProvider::class, Also Created separate directory under app folder :app/Teamwork Below image he code of TeamworkServiceProvider.php file which is inside the provider folder: Folder snaps with teamworkServicePRovider
To resolve this issue I had already tried below points:
- delete vendor and run composer install
- also run php artisan config:cache
- remove bootstrap/config/cache file
Solution
Your class is not called TeamWorkServiceProvider
it is TeamworkServiceProvider
, the case matters because of how composer will match up the class name to a filename. On a case sensitive filesystem TeamWorkServiceProvider.php
and TeamworkServiceProvider.php
are different files.
Answered By - lagbox
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.