escolalms / tags
Escola Headless LMS Tags
Installs: 26 456
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=7.4
- escolalms/core: ^1
- escolalms/settings: ^0
- laravel/framework: >=8.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
README
Features
The lib allows tags
- adding tags to each module
- edit and create multiple tags
See Swagger documented endpoints.
Some tests can also be a great point of start.
To play the content you can use EscolaLMS Tags
Install
composer require escolalms/tags
php artisan migrate
Cors
All the endpoints need to be accesible from other domains, so CORS must be properlly set.
Except of endpoints assets must expose CORS headers as well. You achive that by setting Apache/Nginx/Caddy/Whatever settings - below is example for Nginx for wildcard global access.
location ~* \.(eot|ttf|woff|woff2|jpg|jpeg|gif|png|wav|mp3|mp4|mov|ogg|webv)$ {
add_header Access-Control-Allow-Origin *;
}
Seeder
You can seed library and content with build-in seeders that are accessible with
php artisan tag-permissions:seed
to add permissions
Road map
- caching
- casading delete
- sql foreign keys indexing
- clearup task - deleting temp files, marked for delete