Download the PHP package reliqarts/laravel-logistiq without Composer
On this page you can find all versions of the php package reliqarts/laravel-logistiq. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download reliqarts/laravel-logistiq
More information about reliqarts/laravel-logistiq
Files in reliqarts/laravel-logistiq
Package laravel-logistiq
Short Description Multi-purpose tracking/logistics package for Laravel.
License MIT
Informations about the package laravel-logistiq
Laravel Logistiq
Multi-purpose tracking/logistics package for Laravel
Logistiq is a plug-and-play tracking package which allows you to track any trackable entity (i.e. orders, shipments, etc.) It is highly-configurable and easy to use.
Key Features
- Track any eloquent model through different user-defined statuses.
- Configure one or more events to be fired when a model enters any user-defined status.
- Supports laravel-event-projector in case you're using Event Sourcing (What's this?).
Installation & Usage
-
Install via composer:
-
Configuration & Setup:
-
Publish config file via artisan:
-
The model you intend to track must implement
ReliqArts\Logistiq\Tracking\Contracts\Trackable
or extendReliqArts\Logistiq\Tracking\Models\Trackable
.e.g.
App\Order::class
: -
Create your
Status
model and implement theReliqArts\Logistiq\Tracking\Contracts\Status
contract therein.e.g.
App\Status::class
: -
Configure
event_map
to fire additional events when a particularStatus
is hit.e.g. excerpt from
/config/reliqats-logistiq
:Explanation: With the above snipped of code, whenever the Status with identifier
230c6c51-3b5b-4eea-9ef2-415e4d8fee00
is reached by a trackable model theProductShipped
andProductMoved
events will be fired. You have full control over what these events trigger, however each event must expect aTrackable
as the first constructor argument.
-
More on the way... :truck:
License
The MIT License (MIT). Please see LICENSE for more information.
All versions of laravel-logistiq with dependencies
reliqarts/laravel-common Version ^2.0@dev
spatie/laravel-event-projector Version ^1.3