escolalms/files

Escola file repository API.
240,188
Install
composer require escolalms/files
Latest Version:0.1.29
PHP:>=7.4
License:MIT
Last Updated:Oct 19, 2023
Links: GitHub  ·  Packagist
Maintainer: qunabu

Files

Files browser package

swagger codecov phpunit downloads downloads downloads Maintainability

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 swagger

Tests

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

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 directory avatars/{user_id}

  • EscolaLms\Courses\Events\CourseTutorAssigned - add user access to directory course/{course_id}

  • EscolaLms\Courses\Events\CourseTutorUnassigned - remove user access to directory course/{course_id}

  • EscolaLms\Webinar\Events\WebinarTrainerAssigned - add user access to directory webinar/{webinar_id}

  • EscolaLms\Webinar\Events\WebinarTrainerUnassigned - remove user access to directory webinar/{webinar_id}

  • EscolaLms\StationaryEvents\Events\StationaryEventAuthorAssigned - add user access to directory stationary-events/{stationary_evet_id}

  • EscolaLms\StationaryEvents\Events\StationaryEventAuthorUnassigned - remove user access to directory stationary-events/{stationary_evet_id}

How to use this on frontend

Admin panel

Left menu Menu

Files browser List

File finder Finder

Upload the file to the selected directory Upload

Permissions

Permissions are defined in seeder

Related Packages

mews/purifier

Laravel 5/6/7/8/9/10 HtmlPurifier Package

21,010,090 1,982
kyslik/column-sortable

Package for handling column sorting in Laravel 6.x

6,282,182 647
mews/captcha

Laravel 5/6/7/8/9/10/11/12 Captcha Package

6,095,827 2,586
ajthinking/archetype

Programmatically edit PHP and Laravel files.

4,372,487 272