escolalms / csv-users
Escola Headless LMS CSV Users
Installs: 9 256
Dependents: 2
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:package
Requires
- php: >=7.4
- escolalms/auth: ^0
- laravel/framework: >=8.0
- maatwebsite/excel: ^3.1
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.0
- dev-main
- 0.1.16
- 0.1.15
- 0.1.14
- 0.1.13
- 0.1.12
- 0.1.11
- 0.1.10
- 0.1.9
- 0.1.8
- 0.1.7
- 0.1.6
- 0.1.5
- 0.1.4
- 0.1.3
- 0.1.2
- 0.1.1
- 0.1.0
- 0.0.3
- 0.0.2
- 0.0.1
- dev-fix/disabled-headings-formatting
- dev-fix/rejecting-empty-rows
- dev-exported-extension-of-choice
- dev-feature/STAR-410
- dev-feature/fix-rule
- dev-feature/WC-58
- dev-feature/issue-6
This package is auto-updated.
Last update: 2024-12-24 12:26:36 UTC
README
What does it do
This package is used to export and import users in the .csv
format.
Installation
composer require escolalms/csv-users
php artisan db:seed --class="EscolaLms\CsvUsers\Database\Seeders\CsvUsersPermissionSeeder"
Example
-
Export uses fields from
EscolaLms\Auth\Http\Resources\UserFullResource
-
Import uses the
update
orcreate
method fromEscolaLms\Auth\Repositories\Contracts\UserRepositoryContract
. If the email exists in the database, the user's data is updated. Otherwise, a new user is created.
Endpoints
All the endpoints are defined in
Tests
Run ./vendor/bin/phpunit
to run tests. Test details
Events
EscolaLms\CsvUsers\Events\EscolaLmsImportedNewUserTemplateEvent
=> Event is dispatched after importing a new user.
How to use this on frontend
Admin panel
Permissions
Permissions are defined in seeder