{"id":37234039,"url":"https://github.com/allanvb/nova-exports","last_synced_at":"2026-01-15T03:56:55.798Z","repository":{"id":47657419,"uuid":"357854018","full_name":"allanvb/nova-exports","owner":"allanvb","description":"Package that allow you to export Laravel Nova resources.","archived":false,"fork":false,"pushed_at":"2023-07-06T02:58:51.000Z","size":24,"stargazers_count":2,"open_issues_count":2,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-20T10:35:21.909Z","etag":null,"topics":["excel","export-excel","laravel","nova"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/allanvb.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-14T09:48:14.000Z","updated_at":"2022-08-02T21:45:35.000Z","dependencies_parsed_at":"2022-09-14T09:11:07.502Z","dependency_job_id":null,"html_url":"https://github.com/allanvb/nova-exports","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/allanvb/nova-exports","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvb%2Fnova-exports","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvb%2Fnova-exports/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvb%2Fnova-exports/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvb%2Fnova-exports/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/allanvb","download_url":"https://codeload.github.com/allanvb/nova-exports/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/allanvb%2Fnova-exports/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["excel","export-excel","laravel","nova"],"created_at":"2026-01-15T03:56:55.132Z","updated_at":"2026-01-15T03:56:55.789Z","avatar_url":"https://github.com/allanvb.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003e\n    Laravel Nova package to export resources\n\u003c/h2\u003e\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://packagist.org/packages/allanvb/nova-exports\"\u003e\u003cimg src=\"https://img.shields.io/packagist/v/allanvb/nova-exports?color=orange\u0026style=flat-square\" alt=\"Packagist Version\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/allanvb/nova-exports\"\u003e\u003cimg src=\"https://img.shields.io/github/last-commit/allanvb/nova-exports?color=blue\u0026style=flat-square\" alt=\"GitHub last commit\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://packagist.org/packages/allanvb/nova-exports\"\u003e\u003cimg src=\"https://img.shields.io/packagist/l/allanvb/nova-exports?color=brightgreen\u0026style=flat-square\" alt=\"License\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://sonarcloud.io/dashboard/index/allanvb_nova-exports\"\u003e\u003cimg src=\"https://sonarcloud.io/api/project_badges/measure?project=allanvb_nova-exports\u0026metric=alert_status\" alt=\"Sonar\"/\u003e\u003c/a\u003e\n\u003c/p\u003e\n\nThis package adds and universal export action to your nova application.\n\n## Requirements\n\n- `laravel/nova: ^3.0`\n- `gobrightspot/nova-detached-actions: ^1.1`\n- `optimistdigital/nova-multiselect-field: ^2.0`\n- `kpolicar/nova-date-range: dev-master`\n- `rap2hpoutre/fast-excel: ^2.5`\n\n\n## Usage\n\nTo use the export action, you must add it to `actions` method of your resource. \n\n```php\nuse Allanvb\\NovaExports\\ExportResourceAction;\n\npublic function actions(Request $request): array\n{\n    return [\n        new ExportResourceAction($this),\n    ];\n}\n```\n\n#### Available methods\n\n- `only(array $columns)` - Define whitelist of fields that can be exported.                                                                                            \n- `except(array $columns)` - Excludes the given fields from exporting list. \n- `filename(string $name)` - Sets the download filename. \n- `withUserSelection()` - Enables multi-select field that allow user to select the columns when exporting.\n- `usesDateRange(string $columnName)` - Enables field that allow user to select the range of dates when exporting. *Default: `created_at`*\n- `usesGenerator()` - Enables cursor usage when getting data from database. \n- `queryBuilder(callable $query)` - Use own query on data exportation. \n- `disk(string $disk)` - The storage you want to use for storing export files.\n\n*`withUserSelection` method cannot be used together with `queryBuilder` method.*\n\nYou 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`.\n\n## Exceptions\n\nThe package can throw the following exceptions:\n\n| Exception                       | Reason                                     |\n| ------------------------------- | ------------------------------------------ |\n| *ColumnNotFoundException*       | Column does not exist in given table.      |\n| *EmptyDataException*            | No records to export.                      |\n| *RangeColumnNotDateException*   | Given column for date range is not a date. |\n\n## To do\n\n- [x] Export single resource\n- [x] Implement user selection export\n- [x] Implement generator on exporting\n- [x] Add way to perform joins on export\n- [ ] Add Eloquent relations export\n- [ ] Add option to export to PDF\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENCE) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanvb%2Fnova-exports","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fallanvb%2Fnova-exports","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fallanvb%2Fnova-exports/lists"}