ifnex/04_Laravel/check_shipments.php
Kazem Alghasi f8557a0f20 feat(console): add tracking data import functionality and utility scripts
Implement a new Artisan command and Excel import logic to handle tracking data ingestion. This includes registering new commands in the application bootstrap and providing several utility scripts for debugging and testing the import process.

- Add `ImportTrackingData` command and `TrackingDataImport` class
- Register `ImportShippingRates` and `ImportTrackingData` in `app.php`
- Add `ifnex:import:tracking` closure command in `console.php`
- Include various debugging and testing scripts for Excel and shipment verification
2026-08-04 05:38:35 +03:30

12 lines
338 B
PHP

<?php
require 'vendor/autoload.php';
$app = require_once 'bootstrap/app.php';
$kernel = $app->make(Illuminate\Contracts\Console\Kernel::class);
$kernel->bootstrap();
$shipments = App\Models\Shipment::all();
echo 'Total shipments: ' . $shipments->count() . PHP_EOL;
foreach ($shipments as $s) {
echo 'AWB: ' . $s->awb_no . PHP_EOL;
}