escolalms/csv-users
CSV-Users
What does it do
This package is used to export and import users in the .csv format.
Installation
composer require escolalms/csv-usersphp artisan db:seed --class="EscolaLms\CsvUsers\Database\Seeders\CsvUsersPermissionSeeder"
Example
| id | name | first_name | last_name | country | is_active | created_at | onboarding_completed | email_verified | interests | avatar | roles | permissions | path_avatar | contact | bio | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 16 | Valentine Wehnner | Valentine | Wehnner | jhyatt@example.net | Poland | 2021-10-14T15:50:28.000000Z | TRUE | TRUE | LMS | localhost/storage/avatars/16/logo.png | ["tutor"] | ["access dashboard"] | avatars/16/logo.png | 1234567 | bio |
-
Export uses fields from
EscolaLms\Auth\Http\Resources\UserFullResource -
Import uses the
updateorcreatemethod 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
Import and export button

Permissions
Permissions are defined in seeder
Related Packages
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 0.1.16 | >=7.4 | >=8.0 | MIT | |
| 0.1.15 | >=7.4 | >=8.0 | MIT | |
| 0.1.14 | >=7.4 | >=8.0 | MIT | |
| 0.1.13 | >=7.4 | >=8.0 | MIT | |
| 0.1.12 | >=7.4 | >=8.0 | MIT | |
| 0.1.11 | >=7.4 | >=8.0 | MIT | |
| 0.1.10 | >=7.4 | >=8.0 | MIT | |
| 0.1.9 | >=7.4 | >=8.0 | MIT | |
| 0.1.8 | >=7.4 | >=8.0 | MIT | |
| 0.1.7 | >=7.4 | >=8.0 | MIT | |
| 0.1.6 | >=7.4 | >=8.0 | MIT | |
| 0.1.5 | >=7.4 | >=8.0 | MIT | |
| 0.1.4 | >=7.4 | >=8.0 | MIT | |
| 0.1.3 | >=7.4 | >=8.0 | MIT | |
| 0.1.2 | >=7.4 | >=8.0 | MIT | |
| 0.1.1 | >=7.4 | >=8.0 | MIT | |
| 0.1.0 | >=7.4 | >=8.0 | MIT | |
| 0.0.3 | >=7.4 | >=8.0 | MIT | |
| 0.0.2 | >=7.4 | >=8.0 | MIT | |
| 0.0.1 | >=7.4 | >=8.0 | MIT |