diff --git a/app/Http/Resources/News.php b/app/Http/Resources/News.php index ecf69c37..c133b260 100644 --- a/app/Http/Resources/News.php +++ b/app/Http/Resources/News.php @@ -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; diff --git a/app/Models/Airline.php b/app/Models/Airline.php index 994a79b5..7bae2ae0 100644 --- a/app/Models/Airline.php +++ b/app/Models/Airline.php @@ -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() diff --git a/app/Services/Installer/MigrationService.php b/app/Services/Installer/MigrationService.php index 9ff83a6e..f5ec00ae 100644 --- a/app/Services/Installer/MigrationService.php +++ b/app/Services/Installer/MigrationService.php @@ -68,7 +68,7 @@ class MigrationService extends Service $availMigrations[] = $filepath; } - Log::info('Migrations available: '.count($availMigrations)); + //Log::info('Migrations available: '.count($availMigrations)); return $availMigrations; } diff --git a/app/Services/Installer/SeederService.php b/app/Services/Installer/SeederService.php index 2665c238..7f954dd1 100644 --- a/app/Services/Installer/SeederService.php +++ b/app/Services/Installer/SeederService.php @@ -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)