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.
composer require escolalms/topic-type-project
php artisan migrate
php artisan db:seed --class="EscolaLms\TopicTypeProject\Database\Seeders\TopicTypeProjectPermissionSeeder"
Run ./vendor/bin/phpunit
to run tests.
Test details
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.
This package does not listen for any events.
Permissions are defined in seeder.