this one has me stumped. I'v git clone
ed my repo on Digital Ocean (LEMP stack) and checked out the development
branch. All good at this point. Then I do a composer install
to install the deps, this dies with:
PHP Fatal error: Class 'App\MyApp\Api\Transformers\ProjectTransformer' not found
in /home/greg/MyApp/app/Providers/DatabaseServiceProvider.php on line 67
The DatabaseServiceProvider
has a use
statement at the top like:
use App\MyApp\Api\Transformers\ProjectTransformer;
This is a laravel 5 project for what it's worth. The DatabaseServiceProvider.php
has the namespace namespace App\Providers;
The contents of the ProjectTransformer
that composer is complaining about is:
<?php namespace App\MyApp\Api\Transformers;
class ProjectTransformer extends Transformer
{
/**
* @var array
*/
protected $visible_fields = [
'id',
'title',
'client_id',
'division_id',
'project_manager_id',
'probability',
'total_contract_value',
'description',
'devs'
];
}```
So, composer
is stating that I'm using ProjectTransformer
in DatabaseServiceProvider
and that can't be found. The file absolutely exists, the namespaces appear to be correct...what else am I missing? The other odd issue is that I can composer install
this branch from scratch locally (on homestead) with no issue. Only on digital ocean is it complaining. Thanks for any advice!