Fix environment mapping

This commit is contained in:
Nabeel Shahzad 2021-06-08 17:46:15 -04:00
parent a31201dfd3
commit 544462f420
4 changed files with 7 additions and 5 deletions

View File

@ -18,7 +18,7 @@ class News extends Resource
$res = parent::toArray($request);
$res['user'] = [
'id' => $this->user->id,
'name' => $this->user->name,
'name' => $this->user->name_private,
];
return $res;

View File

@ -6,6 +6,7 @@ use App\Contracts\Model;
use App\Models\Enums\JournalType;
use App\Models\Traits\FilesTrait;
use App\Models\Traits\JournalTrait;
use Illuminate\Support\Str;
/**
* Class Airline
@ -84,7 +85,7 @@ class Airline extends Model
*/
public function setIataAttribute($iata)
{
$this->attributes['iata'] = strtoupper($iata);
$this->attributes['iata'] = Str::upper($iata);;
}
/**
@ -94,7 +95,7 @@ class Airline extends Model
*/
public function setIcaoAttribute($icao): void
{
$this->attributes['icao'] = strtoupper($icao);
$this->attributes['icao'] = Str::upper($icao);
}
public function subfleets()

View File

@ -68,7 +68,7 @@ class MigrationService extends Service
$availMigrations[] = $filepath;
}
Log::info('Migrations available: '.count($availMigrations));
//Log::info('Migrations available: '.count($availMigrations));
return $availMigrations;
}

View File

@ -22,7 +22,8 @@ class SeederService extends Service
// Map an environment to a seeder directory, if we want to share
public static $seed_mapper = [
'local' => 'dev',
'local' => 'dev',
'production' => 'prod'
];
public function __construct(DatabaseService $databaseSvc)