Skip to content
On this page

Stationary Events ​

swaggercodecovphpunitdownloadsdownloadsdownloadsMaintainability

What does it do ​

This package is used to manage stationary events.

Installing ​

  • composer require escolalms/stationary-events
  • php artisan migrate
  • php artisan db:seed --class="EscolaLms\StationaryEvents\Database\Seeders\StationaryEventPermissionSeeder"

Database ​

  1. stationary_events - main table, contains information about the event

    idnamedescriptionstarted_atfinished_atmax_participantsplaceprogramcreated_atupdated_atimage_pathshort_descstatus
    1EdCamp 1Ratione velit nisi autem et et et.2022-07-05 16:57:572022-07-05 20:57:57105BruenportNULL2022-04-14 08:54:032022-04-14 08:54:03NULLEt nihil et ut laudantium consequatur quasi architecto et et laudantium.draft
    2EdCamp 2Qui maxime aut fugit quam ea similique.2022-06-19 07:18:332022-06-19 10:18:3352MeggiemouthNULL2022-04-14 08:54:042022-04-14 08:54:04NULLDignissimos libero impedit eos omnis consequuntur quos officiis sit non dolore consectetur dolore sunt.published
    3EdCamp 3Optio voluptatem labore quia voluptas non.2022-08-16 07:01:182022-08-16 12:01:18118Port PaulinebergNULL2022-04-14 08:54:042022-04-14 08:54:04NULLSed culpa in possimus nihil ducimus fugiat inventore.published
  2. stationary_event_users - table to store assigned users

  3. stationary_event_authors - table to store assigned authors

  4. category_stationary_event - table to store assigned categories

StationaryEvent n -> n User (using pivot table StationaryEventUser)
StationaryEvent n -> n User (using pivot table StationaryEventAuthor)
StationaryEvent n -> n Category (using pivot table CategoryStationaryEvent)

Endpoints ​

All the endpoints are defined in swagger

Tests ​

Run ./vendor/bin/phpunit to run tests.

Test details codecov

Events ​

  1. StationaryEventAssigned - event dispatched after assigning user to stationary event
  2. StationaryEventUnassigned - event dispatched after detaching user form stationary event
  3. StationaryEventAuthorAssigned - event dispatched after assigning author to stationary event
  4. StationaryEventAuthorUnassigned - event dispatched after detaching author from stationary event

How to use this on frontend ​

Admin panel ​

List of stationary eventsList of stationary events

Stationary event formForm

Permissions ​

Permissions are defined in seeder