'b2buy', /* * Package. */ 'package' => 'faqadmin', /* * Modules. */ 'modules' => ['faq'], 'faq' => [ 'model' => [ 'model' => \B2buy\Faqadmin\Models\Faq::class, 'table' => 'faqs', 'presenter' => \B2buy\Faqadmin\Repositories\Presenter\FaqPresenter::class, 'hidden' => [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'createdat', 'updated_at'], 'appends' => [], 'fillable' => ['id', 'question', 'answer', 'type', 'category_id', 'slug', 'title', 'status', 'user_id', 'user_type', 'upload_folder', 'deleted_at', 'created_at', 'updated_at', 'PRIMARY'], 'translatables' => [], 'upload_folder' => 'faqadmin/faq', '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' => 'B2buy', 'package' => 'Faqadmin', 'module' => 'Faq', ], 'workflow' => [ 'points' => [ 'start' => 'draft', 'end' => ['delete'], ], 'steps' => [ 'draft' => [ 'label' => "Faq created", 'action' => ['setStatus', 'draft'], 'next' => ['complete'], ], 'complete' => [ 'label' => "Faq completed", 'status' => ['setStatus', 'complete'], 'next' => ['verify'], ], 'verify' => [ 'label' => "Faq verified", 'action' => ['setStatus', 'verify'], 'next' => ['approve'], ], 'approve' => [ 'label' => "Faq approved", 'action' => ['setStatus', 'approve'], 'next' => ['publish'], ], 'publish' => [ 'label' => "Faq published", 'action' => ['setStatus', 'publish'], 'next' => ['unpublish', 'delete', 'target', 'archive'], ], 'unpublish' => [ 'label' => "Faq unpublished", 'action' => ['setStatus', 'unpublish'], 'next' => ['publish', 'target', 'archive', 'delete'], ], 'archive' => [ 'label' => "Faq archived", 'action' => ['setStatus', 'archive'], 'next' => ['publish', 'delete'], ], 'delete' => [ 'Label' => "Faq deleted", 'status' => ['delete', 'archive'], ], ], ], ], ];