Skip to content
On this page

Topic Type Project

swaggercodecovphpunitdownloadsdownloadsdownloadsMaintainability

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

The endpoints are defined in swagger

Tests

Run ./vendor/bin/phpunit to run tests. Test details codecov

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.