escolalms/categories
Escola Headless LMS Categories
Requires
- php: >=7.4
- escolalms/core: >=0.1
- escolalms/files: ^0
- laravel/framework: >=8.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 7dd4de422ced768be3f34f58a3cc00554dc9cd92
- Marcin Lenkowski <marcin.lenkowski.woop@escola.pl>
This package is auto-updated.
Last update: 2026-06-28 14:27:37 UTC
README
👁 swagger
👁 codecov
👁 phpunit
👁 downloads
👁 downloads
👁 downloads
👁 Maintainability
What does it do
This package is used for creating Categories for EscolaLms.
Installing
composer require escolalms/categoriesphp artisan migratephp artisan db:seed --class="EscolaLms\Consultations\Database\Seeders\ConsultationsPermissionSeeder"
Endpoints
All the endpoints are defined in 👁 swagger
Tests
Run ./vendor/bin/phpunit --filter 'EscolaLms\\Categories\\Tests' to run tests. See tests folder as it's quite good staring point as documentation appendix.
Admin panel
Left menu
List of consultations
Creating/editing consultation
👁 Creating or editing category
Permissions
Permissions are defined in seeder
Features
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
Seeder
You can seed library and content with build-in seeders that are accessible with
php artisan category-permissions:seedto add permissionsphp artisan db:seed --class="\EscolaLms\Categories\Database\Seeders\CategoriesSeeder"
ParentCategory is related belong to with other categoryChildrenCategory is related has many with other categoriesCoursesCategory belongs to many with models CourseUsersCategory 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
