escolalms / files
Escola file repository API.
Requires
- php: >=7.4
- escolalms/auth: ^0
- escolalms/core: ^1
- laravel/framework: >=8.0
Requires (Dev)
- orchestra/testbench: ^6
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2026-06-19 15:33:13 UTC
README
Files browser package
What does it do
This package is used to upload, delete and reuse files.
Installing
composer require escolalms/filesphp artisan migratephp 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


