PHP code example of faulker / eloquent-export
1. Go to this page and download the library: Download faulker/eloquent-export library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
faulker / eloquent-export example snippets
php artisan vender:publish
php artisan export:eloquent user_posts /tmp/export/user_posts.json --id=34342
php artisan export:eloquent user_posts /tmp/export/user_posts.json --import