Larage Excel file import using Laravel Livewire. Support drag and drop file upload and attributes mapping as well as realtime import progress report.
You can install the package via composer:
composer require soap/livewire-excel-import
You can publish and run the migrations with:
php artisan vendor:publish --tag="livewire-excel-import-migrations"
php artisan migrate
You can publish the config file with:
php artisan vendor:publish --tag="livewire-excel-import-config"
This is the contents of the published config file:
return [
/**
* Options: tailwind | bootstrap-4 | bootstrap-5.
*/
'theme' => 'tailwind',
];
Optionally, you can publish the views using
php artisan vendor:publish --tag="livewire-excel-import-views"
In your desired view, put the following livewire component.
@livewire('excel-importer', [
'model' => App\Models\User::class,
'importer' => App\Imports\UsersImport::class
])
composer test
Versions will be supported for a limited amount of time.
Version | Laravel Version | PHP Version | Support |
---|---|---|---|
1.0 | >=9.0 | ^8.1 | First Release |
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.