izopi4a/econt-bundle
A Laravel/PHP bundle for integrating the Econt courier service into your application. It offers convenient access to Econt shipping, delivery, tracking, and order-processing APIs, helping you manage courier workflows and automate logistics tasks from your codebase.
composer update to pull v1.0.1.php artisan vendor:publish --provider="Vendor\\Package\\ServiceProvider").Office, City, and a contact-phone value object. These are the primary objects you will query and serialize.id and return it as JSON. Example flow:
$city->findOffice($officeId) or the package’s equivalent).response()->json($office) — v1.0.1 adds jsonSerialize() so the object encodes cleanly without manual array mapping.id” capability instead of manually filtering a collection. Wrap it in a repository method so you can swap implementations later.JsonSerializable, you can pass them directly to response()->json(), ->toJson(), or Laravel API resources. Avoid hand-building arrays unless you need to reshape fields.json_encode($office) contains expected keys and that the city-scoped finder returns null or throws consistently when the office does not belong to the city.jsonSerialize() exposure — automatic serialization may include fields you do not want in public APIs. Audit the output and use $hidden, custom resources, or a wrapper DTO if the package does not support field visibility.json_encode() returns {} or omits fields, check that the object is the package’s class (not a raw array) and that no JsonSerializable implementation is being bypassed by a cast or accessor.^1.0.1 and review JSON output in staging before deploying.How can I help you explore Laravel packages today?