Fix environment mapping
This commit is contained in:
parent
a31201dfd3
commit
544462f420
@ -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;
|
||||
|
@ -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()
|
||||
|
@ -68,7 +68,7 @@ class MigrationService extends Service
|
||||
$availMigrations[] = $filepath;
|
||||
}
|
||||
|
||||
Log::info('Migrations available: '.count($availMigrations));
|
||||
//Log::info('Migrations available: '.count($availMigrations));
|
||||
|
||||
return $availMigrations;
|
||||
}
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user