smorken/importer

Laravel Eloquent Importer

v6.3.2 2021-07-27 19:17 UTC

This package is auto-updated.

Last update: 2024-11-28 02:49:22 UTC


README

License

This software is open-sourced software licensed under the MIT license

The Laravel framework is open-sourced software licensed under the MIT license

Requirements

Composer

"smorken/importer": "~5.0"

Use

  • Add service providers to config/app.php
    • \Smorken\Importer\ServiceProvider::class
    • \Smorken\Importer\CleanupServiceProvider::class
  • Add controller to app\Http\routes.php
    • Route::controller('importer', '\Smorken\Importer\Http\Controllers\ImportController');
    • Make sure to handle authentication/authorization
  • Publish the config/views/db tags and run the database migrations
    • php artisan vendor:publish --provider="Smorken\Importer\ServiceProvider" --tag=db --tag=config
    • php artisan migrate
  • Edit the config file config/importer.php
  • Create your Import and Cleanup providers and add to the config

Import Examples

  • /src/Import/Providers/Examples

Cleanup Examples

  • /srce/Import/Cleanup/Examples

Artisan commands

  • php artisan importer:import
  • php artisan importer:cleanup