escolalms/topic-type-project

Escola Headless LMS Topic Type Project

0.1.0 2024-02-16 11:52 UTC

This package is auto-updated.

Last update: 2024-12-16 13:48:37 UTC


README

swagger codecov phpunit downloads downloads downloads Maintainability

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.