A Laravel package for hassle free generate CSV,JSON files from Eloquent model,Collection Array, You can Import/Export Data from just one command.
You can install the package via composer:
composer require dipenparmar12/exportable
Syntax
php artisan csv:export <table_name1> <table_name2> <table_name...>
Example
php artisan csv:export Users Posts Jobs
To Export all tables
php artisan csv:export tables --all
Dump
- Export table data in Csv file
- Export table data in Json file
Import
- Import table data in Csv file
- Import table data in Json file
Conversions
- Json to Csv
- Csv to Json
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email dipenparmar12@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.