File manager - Edit - /var/www/html/portalHomolog/app/Console/Commands/MobiangraAtualizar.php
Back
<?php namespace App\Console\Commands; use App\Http\Resources\Mobiangra\MobiangraResource; use Illuminate\Console\Command; class MobiangraAtualizar extends Command { /** * @var string */ protected $signature = 'mobiangra:fetch-positions'; /** * @var string */ protected $description = 'Busca posições dos veículos na API e gera o feed GTFS-RT (.pb) e o JSON de dados em tempo real.'; public function handle(MobiangraResource $resource): int { $result = $resource->atualizarFeed(); if ($result['success']) { $this->info("[Mobiangra] {$result['message']}"); return self::SUCCESS; } $this->error("[Mobiangra] {$result['message']}"); return self::FAILURE; } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings