'b2buy', /* * Package. */ 'package' => 'tutorial', /* * Modules. */ 'modules' => ['tutorial', 'tutorialcategory', 'tutorialtag'], 'tutorial' => [ 'model' => [ 'model' => \B2buy\Tutorial\Models\Tutorial::class, 'table' => 'tutorials', 'presenter' => \B2buy\Tutorial\Repositories\Presenter\TutorialPresenter::class, 'hidden' => [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'createdat', 'updated_at'], 'appends' => [], 'fillable' => ['id', 'category_id', 'title', 'summary', 'description', 'images', 'tags', 'viewcount', 'slug', 'status', 'user_id', 'user_type', 'deleted_at', 'created_at', 'updated_at'], 'translatables' => [], 'upload_folder' => 'tutorial/tutorial', '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' => 'Tutorial', 'module' => 'Tutorial', ], 'workflow' => [ 'points' => [ 'start' => 'draft', 'end' => ['delete'], ], 'steps' => [ 'draft' => [ 'label' => "Tutorial created", 'action' => ['setStatus', 'draft'], 'next' => ['complete'], ], 'complete' => [ 'label' => "Tutorial completed", 'status' => ['setStatus', 'complete'], 'next' => ['verify'], ], 'verify' => [ 'label' => "Tutorial verified", 'action' => ['setStatus', 'verify'], 'next' => ['approve'], ], 'approve' => [ 'label' => "Tutorial approved", 'action' => ['setStatus', 'approve'], 'next' => ['publish'], ], 'publish' => [ 'label' => "Tutorial published", 'action' => ['setStatus', 'publish'], 'next' => ['unpublish', 'delete', 'target', 'archive'], ], 'unpublish' => [ 'label' => "Tutorial unpublished", 'action' => ['setStatus', 'unpublish'], 'next' => ['publish', 'target', 'archive', 'delete'], ], 'archive' => [ 'label' => "Tutorial archived", 'action' => ['setStatus', 'archive'], 'next' => ['publish', 'delete'], ], 'delete' => [ 'Label' => "Tutorial deleted", 'status' => ['delete', 'archive'], ], ], ], ], 'tutorialcategory' => [ 'model' => [ 'model' => \B2buy\Tutorial\Models\Tutorialcategory::class, 'table' => 'tutorialcategories', 'presenter' => \B2buy\Tutorial\Repositories\Presenter\TutorialcategoryPresenter::class, 'hidden' => [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'createdat', 'updated_at'], 'appends' => [], 'fillable' => ['id', 'name', 'slug', 'status', 'user_id', 'user_type', 'deleted_at', 'created_at', 'updated_at'], 'translatables' => [], 'upload_folder' => 'tutorial/tutorialcategory', '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' => 'Tutorial', 'module' => 'Tutorialcategory', ], 'workflow' => [ 'points' => [ 'start' => 'draft', 'end' => ['delete'], ], 'steps' => [ 'draft' => [ 'label' => "Tutorialcategory created", 'action' => ['setStatus', 'draft'], 'next' => ['complete'], ], 'complete' => [ 'label' => "Tutorialcategory completed", 'status' => ['setStatus', 'complete'], 'next' => ['verify'], ], 'verify' => [ 'label' => "Tutorialcategory verified", 'action' => ['setStatus', 'verify'], 'next' => ['approve'], ], 'approve' => [ 'label' => "Tutorialcategory approved", 'action' => ['setStatus', 'approve'], 'next' => ['publish'], ], 'publish' => [ 'label' => "Tutorialcategory published", 'action' => ['setStatus', 'publish'], 'next' => ['unpublish', 'delete', 'target', 'archive'], ], 'unpublish' => [ 'label' => "Tutorialcategory unpublished", 'action' => ['setStatus', 'unpublish'], 'next' => ['publish', 'target', 'archive', 'delete'], ], 'archive' => [ 'label' => "Tutorialcategory archived", 'action' => ['setStatus', 'archive'], 'next' => ['publish', 'delete'], ], 'delete' => [ 'Label' => "Tutorialcategory deleted", 'status' => ['delete', 'archive'], ], ], ], ], 'tutorialtag' => [ 'model' => [ 'model' => \B2buy\Tutorial\Models\Tutorialtag::class, 'table' => 'tutorialtags', 'presenter' => \B2buy\Tutorial\Repositories\Presenter\TutorialtagPresenter::class, 'hidden' => [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at', 'createdat', 'updated_at'], 'appends' => [], 'fillable' => ['id', 'name', 'slug', 'status', 'user_id', 'user_type', 'deleted_at', 'created_at', 'updated_at'], 'translatables' => [], 'upload_folder' => 'tutorial/tutorialtag', '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' => 'Tutorial', 'module' => 'Tutorialtag', ], 'workflow' => [ 'points' => [ 'start' => 'draft', 'end' => ['delete'], ], 'steps' => [ 'draft' => [ 'label' => "Tutorialtag created", 'action' => ['setStatus', 'draft'], 'next' => ['complete'], ], 'complete' => [ 'label' => "Tutorialtag completed", 'status' => ['setStatus', 'complete'], 'next' => ['verify'], ], 'verify' => [ 'label' => "Tutorialtag verified", 'action' => ['setStatus', 'verify'], 'next' => ['approve'], ], 'approve' => [ 'label' => "Tutorialtag approved", 'action' => ['setStatus', 'approve'], 'next' => ['publish'], ], 'publish' => [ 'label' => "Tutorialtag published", 'action' => ['setStatus', 'publish'], 'next' => ['unpublish', 'delete', 'target', 'archive'], ], 'unpublish' => [ 'label' => "Tutorialtag unpublished", 'action' => ['setStatus', 'unpublish'], 'next' => ['publish', 'target', 'archive', 'delete'], ], 'archive' => [ 'label' => "Tutorialtag archived", 'action' => ['setStatus', 'archive'], 'next' => ['publish', 'delete'], ], 'delete' => [ 'Label' => "Tutorialtag deleted", 'status' => ['delete', 'archive'], ], ], ], ], ];