- Laravel Nova:
- Maatwebsite Laravel Excel:
Before installing the package, make sure you have set-up Laravel Nova.
Require this package (
maatwebsite/laravel-nova-excel) in the
composer.json of your Laravel project or run the following command in your console:
composer require psr/simple-cache:^2.0 maatwebsite/laravel-nova-excel
If composer require fails on Laravel 9 because of the simple-cache dependency, you will have to specify the psr/simple-cache version as ^2.0 in your composer.json to satisfy the PhpSpreadsheet dependency. You can install both at the same time as.
# Service Provider
In case you don't have auto-discovery enabled, you'll have to add the following two service providers in
'providers' => [ /* * Package Service Providers... */ Maatwebsite\Excel\ExcelServiceProvider::class, Maatwebsite\LaravelNovaExcel\LaravelNovaExcelServiceProvider::class, ]