"require": {
"imamuseum/harvester": "^2.0"
},In config/app.php add to the autoloaded providers -
Imamuseum\Harvester\HarvesterServiceProvider::class,Add ExampleHarvester to app/Providers/AppServiceProvider.php to implement the HarvesterInterface.
public function register()
{
$this->app->bind('Imamuseum\Harvester\Contracts\HarvesterInterface',
'Imamuseum\Harvester\ExampleHarvester');
}Now you can publish the package -
php artisan vendor:publish
Run Migrations -
php artisan migrateRun an initial sync with fake data -
php artisan harvest:collection --initialPush items off the queue -
php artisan queue:listenphp artisan harvest:collection
php artisan harvest:object
php artisan harvest:maintainUse the --help flag after any command to view the available options with a description.
The Laravel framework is open-sourced software licensed under the MIT license.