escolalms / stationary-events
Escola Headless LMS Stationary Events
Installs: 7 581
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=7.4
- escolalms/auth: ^0
- escolalms/categories: ^0
- escolalms/core: ^1
- escolalms/files: ^0
Requires (Dev)
- orchestra/testbench: ^6
- phpunit/phpunit: ^9.0
README
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
-
stationary_events
- main table, contains information about the event -
stationary_event_users
- table to store assigned users -
stationary_event_authors
- table to store assigned authors -
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
Tests
Run ./vendor/bin/phpunit
to run tests.
Events
StationaryEventAssigned
- event dispatched after assigning user to stationary eventStationaryEventUnassigned
- event dispatched after detaching user form stationary eventStationaryEventAuthorAssigned
- event dispatched after assigning author to stationary eventStationaryEventAuthorUnassigned
- event dispatched after detaching author from stationary event
How to use this on frontend
Admin panel
Permissions
Permissions are defined in seeder