escolalms / files
Escola file repository API.
Installs: 32 576
Dependents: 9
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=7.4
- escolalms/auth: ^0
- escolalms/core: ^1
- laravel/framework: >=8.0
Requires (Dev)
- orchestra/testbench: ^6
- phpunit/phpunit: ^9.0
- dev-main
- 0.1.29
- 0.1.28
- 0.1.27
- 0.1.26
- 0.1.25
- 0.1.24
- 0.1.23
- 0.1.22
- 0.1.21
- 0.1.20
- 0.1.19
- 0.1.18
- 0.1.17
- 0.1.16
- 0.1.15
- 0.1.14
- v0.1.13
- v0.1.12
- v0.1.11
- v0.1.0
- v0.0.10
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- 0.0.3
- v0.0.2
- dev-feature/file-ext
- dev-feature/find-files-by-name
- dev-develop
- dev-files/22
- dev-files/18
- dev-files/4
- dev-files/16
- dev-files/5
- dev-files/3
- dev-files-5
This package is auto-updated.
Last update: 2024-11-19 11:30:19 UTC
README
Files browser package
What does it do
This package is used to upload, delete and reuse files.
Installing
composer require escolalms/files
php artisan migrate
php artisan db:seed --class="EscolaLms\Files\Database\Seeders\PermissionTableSeeder"
Database
This package adds access_to_directories
column to the users table.
Endpoints
All the endpoints are defined in
Tests
Run ./vendor/bin/phpunit
to run tests.
Events
This package does not dispatch any events.
Listeners
This package listens for events and adds or removes user access to directories.
-
EscolaLms\Auth\Events\AccountConfirmed
- add user access to directoryavatars/{user_id}
-
EscolaLms\Courses\Events\CourseTutorAssigned
- add user access to directorycourse/{course_id}
-
EscolaLms\Courses\Events\CourseTutorUnassigned
- remove user access to directorycourse/{course_id}
-
EscolaLms\Webinar\Events\WebinarTrainerAssigned
- add user access to directorywebinar/{webinar_id}
-
EscolaLms\Webinar\Events\WebinarTrainerUnassigned
- remove user access to directorywebinar/{webinar_id}
-
EscolaLms\StationaryEvents\Events\StationaryEventAuthorAssigned
- add user access to directorystationary-events/{stationary_evet_id}
-
EscolaLms\StationaryEvents\Events\StationaryEventAuthorUnassigned
- remove user access to directorystationary-events/{stationary_evet_id}
How to use this on frontend
Admin panel
Upload the file to the selected directory
Permissions
Permissions are defined in seeder