'dipendra', /* * Package. */ 'package' => 'programming', /* * Modules. */ 'modules' => ['course', 'chapter', 'tutorial'], 'image' => [ 'sm' => [ 'width' => '140', 'height' => '140', 'action' => 'fit', 'watermark' => 'img/logo/default.png', ], 'md' => [ 'width' => '370', 'height' => '420', 'action' => 'fit', 'watermark' => 'img/logo/default.png', ], 'lg' => [ 'width' => '780', 'height' => '497', 'action' => 'fit', 'watermark' => 'img/logo/default.png', ], 'xl' => [ 'width' => '800', 'height' => '530', 'action' => 'fit', 'watermark' => 'img/logo/default.png', ], ], 'course' => [ 'model' => 'Dipendra\Programming\Models\Course', 'table' => 'courses', 'presenter' => \Dipendra\Programming\Repositories\Presenter\CourseItemPresenter::class, 'hidden' => [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at'], 'appends' => [], 'fillable' => ['user_id', 'Course Name', 'slug'], 'translate' => ['Course Name', 'slug'], 'upload_folder' => 'programming/course', 'uploads' => [ 'single' => [], 'multiple' => [], ], 'casts' => [ ], 'revision' => [], 'perPage' => '20', 'search' => [ 'name' => 'like', 'status', ], /* 'workflow' => [ 'points' => [ 'start' => 'draft', 'end' => ['delete'], ], 'steps' => [ 'draft' => [ 'label' => "Course created", 'action' => ['setStatus', 'draft'], 'next' => ['complete'], ], 'complete' => [ 'label' => "Course completed", 'status' => ['setStatus', 'complete'], 'next' => ['verify'], ], 'verify' => [ 'label' => "Course verified", 'action' => ['setStatus', 'verify'], 'next' => ['approve'], ], 'approve' => [ 'label' => "Course approved", 'action' => ['setStatus', 'approve'], 'next' => ['publish'], ], 'publish' => [ 'label' => "Course published", 'action' => ['setStatus', 'publish'], 'next' => ['unpublish', 'delete', 'target', 'archive'], ], 'unpublish' => [ 'label' => "Course unpublished", 'action' => ['setStatus', 'unpublish'], 'next' => ['publish', 'target', 'archive', 'delete'], ], 'archive' => [ 'label' => "Course archived", 'action' => ['setStatus', 'archive'], 'next' => ['publish', 'delete'], ], 'delete' => [ 'Label' => "Course deleted", 'status' => ['delete', 'archive'], ], ], ], */ ], 'chapter' => [ 'model' => 'Dipendra\Programming\Models\Chapter', 'table' => 'chapters', 'presenter' => \Dipendra\Programming\Repositories\Presenter\ChapterItemPresenter::class, 'hidden' => [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at'], 'appends' => [], 'fillable' => ['user_id', 'Chapter', 'Slug', 'course_id'], 'translate' => ['Chapter', 'Slug', 'course_id'], 'upload_folder' => 'programming/chapter', 'uploads' => [ 'single' => [], 'multiple' => [], ], 'casts' => [ ], 'revision' => [], 'perPage' => '20', 'search' => [ 'name' => 'like', 'status', ], /* 'workflow' => [ 'points' => [ 'start' => 'draft', 'end' => ['delete'], ], 'steps' => [ 'draft' => [ 'label' => "Chapter created", 'action' => ['setStatus', 'draft'], 'next' => ['complete'], ], 'complete' => [ 'label' => "Chapter completed", 'status' => ['setStatus', 'complete'], 'next' => ['verify'], ], 'verify' => [ 'label' => "Chapter verified", 'action' => ['setStatus', 'verify'], 'next' => ['approve'], ], 'approve' => [ 'label' => "Chapter approved", 'action' => ['setStatus', 'approve'], 'next' => ['publish'], ], 'publish' => [ 'label' => "Chapter published", 'action' => ['setStatus', 'publish'], 'next' => ['unpublish', 'delete', 'target', 'archive'], ], 'unpublish' => [ 'label' => "Chapter unpublished", 'action' => ['setStatus', 'unpublish'], 'next' => ['publish', 'target', 'archive', 'delete'], ], 'archive' => [ 'label' => "Chapter archived", 'action' => ['setStatus', 'archive'], 'next' => ['publish', 'delete'], ], 'delete' => [ 'Label' => "Chapter deleted", 'status' => ['delete', 'archive'], ], ], ], */ ], 'tutorial' => [ 'model' => 'Dipendra\Programming\Models\Tutorial', 'table' => 'tutorials', 'presenter' => \Dipendra\Programming\Repositories\Presenter\TutorialItemPresenter::class, 'hidden' => [], 'visible' => [], 'guarded' => ['*'], 'slugs' => ['slug' => 'name'], 'dates' => ['deleted_at'], 'appends' => [], 'fillable' => ['user_id', 'title', 'chapter_id', 'Content'], 'translate' => ['title', 'chapter_id', 'Content'], 'upload_folder' => 'programming/tutorial', 'uploads' => [ 'single' => [], 'multiple' => [], ], 'casts' => [ ], 'revision' => [], 'perPage' => '20', 'search' => [ 'name' => 'like', 'status', ], /* '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'], ], ], ], */ ], ];