escolalms / categories
Escola Headless LMS Categories
Installs: 38 342
Dependents: 10
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
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
- dev-main
- 0.1.43
- 0.1.42
- 0.1.41
- 0.1.40
- 0.1.39
- 0.1.38
- 0.1.37
- 0.1.36
- 0.1.35
- 0.1.34
- 0.1.33
- 0.1.32
- 0.1.31
- 0.1.30
- 0.1.29
- 0.1.28
- 0.1.27
- 0.1.26
- 0.1.25
- 0.1.24
- 0.1.23
- 0.1.22
- 0.1.21
- 0.1.20
- 0.1.19
- 0.1.18
- 0.1.17
- 0.1.16
- 0.1.15
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1
- dev-feature/sort-categories
- dev-pagination-and-sort
This package is auto-updated.
Last update: 2024-11-18 09:30:13 UTC
README
What does it do
This package is used for creating Categories for EscolaLms.
Installing
composer require escolalms/categories
php artisan migrate
php artisan db:seed --class="EscolaLms\Consultations\Database\Seeders\ConsultationsPermissionSeeder"
Endpoints
All the endpoints are defined in
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
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:seed
to add permissionsphp artisan db:seed --class="\EscolaLms\Categories\Database\Seeders\CategoriesSeeder"
Parent
Category is related belong to with other categoryChildren
Category is related has many with other categoriesCourses
Category belongs to many with models CourseUsers
Category 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