'litecms', /* * Package. */ 'package' => 'analytic', /* * Modules. */ 'modules' => ['transaction_log'], 'transaction_log' => [ 'model' => [ 'model' => \Litecms\Analytic\Models\TransactionLog::class, 'table' => 'transaction_logs', 'presenter' => \Litecms\Analytic\Repositories\Presenter\TransactionLogPresenter::class, 'hidden' => [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'createdat', 'updated_at'], 'appends' => [], 'fillable' => ['id', 'user_id', 'ip_address', 'date', 'type', 'avs_code', 'total_amount', 'card', 'json_data', 'cart_id', 'added_item', 'restaurant_id', 'url', 'source', 'server_variables', 'HTTP_REFERER', 'created_at', 'updated_at', 'deleted_at'], 'translatables' => [], 'upload_folder' => 'analytic/transaction_log', 'uploads' => [ /* 'images' => [ 'count' => 10, 'type' => 'image', ], 'file' => [ 'count' => 1, 'type' => 'file', ], */ ], 'casts' => [ /* 'images' => 'array', 'file' => 'array', */ ], 'revision' => [], 'perPage' => '20', 'search' => [ 'name' => 'like', 'status', ] ], 'controller' => [ 'provider' => 'Litecms', 'package' => 'Analytic', 'module' => 'TransactionLog', ], 'workflow' => [ 'points' => [ 'start' => 'draft', 'end' => ['delete'], ], 'steps' => [ 'draft' => [ 'label' => "TransactionLog created", 'action' => ['setStatus', 'draft'], 'next' => ['complete'], ], 'complete' => [ 'label' => "TransactionLog completed", 'status' => ['setStatus', 'complete'], 'next' => ['verify'], ], 'verify' => [ 'label' => "TransactionLog verified", 'action' => ['setStatus', 'verify'], 'next' => ['approve'], ], 'approve' => [ 'label' => "TransactionLog approved", 'action' => ['setStatus', 'approve'], 'next' => ['publish'], ], 'publish' => [ 'label' => "TransactionLog published", 'action' => ['setStatus', 'publish'], 'next' => ['unpublish', 'delete', 'target', 'archive'], ], 'unpublish' => [ 'label' => "TransactionLog unpublished", 'action' => ['setStatus', 'unpublish'], 'next' => ['publish', 'target', 'archive', 'delete'], ], 'archive' => [ 'label' => "TransactionLog archived", 'action' => ['setStatus', 'archive'], 'next' => ['publish', 'delete'], ], 'delete' => [ 'Label' => "TransactionLog deleted", 'status' => ['delete', 'archive'], ], ], ], ], ];