PHPackages                             allanvb/nova-exports - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [PDF &amp; Document Generation](/categories/documents)
4. /
5. allanvb/nova-exports

ActiveLibrary[PDF &amp; Document Generation](/categories/documents)

allanvb/nova-exports
====================

Package that allow you to export Laravel Nova resources.

1.1.2(4y ago)210.6k↑2300%5[2 PRs](https://github.com/allanvb/nova-exports/pulls)MITPHPPHP &gt;=7.2.0|^8.0

Since Apr 14Pushed 2y ago1 watchersCompare

[ Source](https://github.com/allanvb/nova-exports)[ Packagist](https://packagist.org/packages/allanvb/nova-exports)[ RSS](/packages/allanvb-nova-exports/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (6)Versions (7)Used By (0)

 Laravel Nova package to export resources
------------------------------------------

[](#----laravel-nova-package-to-export-resources)

 [![Packagist Version](https://camo.githubusercontent.com/4a0ce490ac56bf32ee5c71ff039d6789d97631336e18551e5defd30c83939245/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616c6c616e76622f6e6f76612d6578706f7274733f636f6c6f723d6f72616e6765267374796c653d666c61742d737175617265)](https://packagist.org/packages/allanvb/nova-exports) [![GitHub last commit](https://camo.githubusercontent.com/0e7d0b0a60feda24ee863efb242047eaa97a9a17e82b0169401da804303d4c91/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6173742d636f6d6d69742f616c6c616e76622f6e6f76612d6578706f7274733f636f6c6f723d626c7565267374796c653d666c61742d737175617265)](https://packagist.org/packages/allanvb/nova-exports) [![License](https://camo.githubusercontent.com/cf985c7315e16972724eff97b1279dd09e396d07c0b87ed555c4c5180d6de6d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616c6c616e76622f6e6f76612d6578706f7274733f636f6c6f723d627269676874677265656e267374796c653d666c61742d737175617265)](https://packagist.org/packages/allanvb/nova-exports) [![Sonar](https://camo.githubusercontent.com/793b2a710c67fa1b26b67dcc0962ee5318cb5694ec8c478bf39340aac173487c/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d616c6c616e76625f6e6f76612d6578706f727473266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/dashboard/index/allanvb_nova-exports)

This package adds and universal export action to your nova application.

Requirements
------------

[](#requirements)

- `laravel/nova: ^3.0`
- `gobrightspot/nova-detached-actions: ^1.1`
- `optimistdigital/nova-multiselect-field: ^2.0`
- `kpolicar/nova-date-range: dev-master`
- `rap2hpoutre/fast-excel: ^2.5`

Usage
-----

[](#usage)

To use the export action, you must add it to `actions` method of your resource.

```
use Allanvb\NovaExports\ExportResourceAction;

public function actions(Request $request): array
{
    return [
        new ExportResourceAction($this),
    ];
}
```

#### Available methods

[](#available-methods)

- `only(array $columns)` - Define whitelist of fields that can be exported.
- `except(array $columns)` - Excludes the given fields from exporting list.
- `filename(string $name)` - Sets the download filename.
- `withUserSelection()` - Enables multi-select field that allow user to select the columns when exporting.
- `usesDateRange(string $columnName)` - Enables field that allow user to select the range of dates when exporting. *Default: `created_at`*
- `usesGenerator()` - Enables cursor usage when getting data from database.
- `queryBuilder(callable $query)` - Use own query on data exportation.
- `disk(string $disk)` - The storage you want to use for storing export files.

*`withUserSelection` method cannot be used together with `queryBuilder` method.*

You are also able to use all of [Nova Action](https://nova.laravel.com/docs/3.0/actions/defining-actions.html) methods, and all of [Detached Actions](https://github.com/gobrightspot/nova-detached-actions#display-on-different-screens) methods on `ExportResourceAction`.

Exceptions
----------

[](#exceptions)

The package can throw the following exceptions:

ExceptionReason*ColumnNotFoundException*Column does not exist in given table.*EmptyDataException*No records to export.*RangeColumnNotDateException*Given column for date range is not a date.To do
-----

[](#to-do)

- Export single resource
- Implement user selection export
- Implement generator on exporting
- Add way to perform joins on export
- Add Eloquent relations export
- Add option to export to PDF

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENCE) for more information.

###  Health Score

33

—

LowBetter than 76% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~25 days

Total

6

Last Release

1680d ago

PHP version history (2 changes)1.0.0PHP &gt;=7.2.0

1.1.0PHP &gt;=7.2.0|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ebd148e67fc89e01df6c727b65db92ddf77fa3a14f8963e830ce5fb96a76b88?d=identicon)[alanvb](/maintainers/alanvb)

---

Top Contributors

[![allanvb](https://avatars.githubusercontent.com/u/53047487?v=4)](https://github.com/allanvb "allanvb (13 commits)")

---

Tags

excelexport-excellaravelnovalaravelexcelnovaexports

### Embed Badge

![Health badge](/badges/allanvb-nova-exports/health.svg)

```
[![Health](https://phpackages.com/badges/allanvb-nova-exports/health.svg)](https://phpackages.com/packages/allanvb-nova-exports)
```

###  Alternatives

[emiliogrv/nova-batch-load

A Laravel Nova XLS &amp; CSV importer

1641.8k](/packages/emiliogrv-nova-batch-load)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
