I am trying to autoload a file and my PSR-4 autoloading worked fine locally however now that I am deploying to a baremetal server. It is not working and PHP states that it can’t find the autoloaded file. This is the current error: Fatal error: Class ‘MetabaseModelsCron’ not found in /usr/www/users/metabase/src/commands/ArticleFetchCron.php on line 25 My composer.json is as follows: The
Tag: autoload
laravel class not found (works on localhost but not on DO server)
This is a repeat question – eg: Laravel 4 migrations – class not found However, I’ve tried every solution (from every forum I could find) and cannot figure this out. Scenario I created a Laravel 4 project on my local machine – added some classes, controllers, views, etc – the project works great. I then copy this fresh repo onto