'litecms', /* * Package. */ 'package' => 'email', /* * Modules. */ 'modules' => ['emails'], 'emails' => [ 'model' => [ 'model' => \Litecms\Email\Models\Emails::class, 'table' => 'emails', 'presenter' => \Litecms\Email\Repositories\Presenter\EmailsPresenter::class, 'hidden' => [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'createdat', 'updated_at'], 'appends' => [], 'fillable' => ['id', 'group_id', 'campaign_datetime', 'content', 'created_at', 'updated_at', 'deleted_at'], 'translatables' => [], 'upload_folder' => 'email/emails', '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' => 'Email', 'module' => 'Emails', ], 'workflow' => [ 'points' => [ 'start' => 'draft', 'end' => ['delete'], ], 'steps' => [ 'draft' => [ 'label' => "Emails created", 'action' => ['setStatus', 'draft'], 'next' => ['complete'], ], 'complete' => [ 'label' => "Emails completed", 'status' => ['setStatus', 'complete'], 'next' => ['verify'], ], 'verify' => [ 'label' => "Emails verified", 'action' => ['setStatus', 'verify'], 'next' => ['approve'], ], 'approve' => [ 'label' => "Emails approved", 'action' => ['setStatus', 'approve'], 'next' => ['publish'], ], 'publish' => [ 'label' => "Emails published", 'action' => ['setStatus', 'publish'], 'next' => ['unpublish', 'delete', 'target', 'archive'], ], 'unpublish' => [ 'label' => "Emails unpublished", 'action' => ['setStatus', 'unpublish'], 'next' => ['publish', 'target', 'archive', 'delete'], ], 'archive' => [ 'label' => "Emails archived", 'action' => ['setStatus', 'archive'], 'next' => ['publish', 'delete'], ], 'delete' => [ 'Label' => "Emails deleted", 'status' => ['delete', 'archive'], ], ], ], ], ];