What does it do
This package is used for creating Categories for EscolaLms.
composer require escolalms/categories
php artisan migrate
php artisan db:seed --class="EscolaLms\Consultations\Database\Seeders\ConsultationsPermissionSeeder"
./vendor/bin/phpunit --filter 'EscolaLms\\Categories\\Tests' to run tests. See tests folder as it's quite good staring point as documentation appendix.
List of consultations
Permissions are defined in seeder
The lib allows categories
- adding a category
- generate slug for category
- edit category
- delete category
- show list categories
- if you want to remove category which has sub categories, earlier delete sub categories
To play the content you can use EscolaLMS Categories
You can seed library and content with build-in seeders that are accessible with
php artisan category-permissions:seedto add permissions
php artisan db:seed --class="\EscolaLms\Categories\Database\Seeders\CategoriesSeeder"
ParentCategory is related belong to with other category
ChildrenCategory is related has many with other categories
CoursesCategory belongs to many with models Course
UsersCategory is related belongs to many with User
Category 1 -> 1 Category (Parent)
Category 1 -> n Category (Children)
Category 1 -> n Course
Category 1 -> n Users