escolalms / topic-type-project
Escola Headless LMS Topic Type Project
Installs: 3 868
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=7.4
- escolalms/auth: ^0
- escolalms/core: ^1
- escolalms/topic-types: ^0
- laravel/framework: >=8.0
Requires (Dev)
- darkaonline/l5-swagger: 8.1.0
- orchestra/testbench: >=5.0
- phpunit/phpunit: ^9.0
README
What does it do
This package is another TopicType. It allows students to upload their solutions as files. This type is used for building headless Course.
The package by default grants students permissions to add and view their own solutions within the course. Administrators have permissions to display the list of all student solutions, as well as to download and delete them.
Installing
composer require escolalms/topic-type-project
php artisan migrate
php artisan db:seed --class="EscolaLms\TopicTypeProject\Database\Seeders\TopicTypeProjectPermissionSeeder"
Endpoints
Tests
Run ./vendor/bin/phpunit
to run tests.
Test details
Events
ProjectSolutionCreatedEvent
- This event is dispatched when the user has uploaded a solution
You can use the escolalms/templates-email package, which listens to this event and sends an email.
Listeners
This package does not listen for any events.
Permissions
Permissions are defined in seeder.