PHPackages                             nicklayb/laravel-db-import - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. nicklayb/laravel-db-import

ActivePackage[Database &amp; ORM](/categories/database)

nicklayb/laravel-db-import
==========================

Laravel database import package for easy manipulations

1.2.0(6y ago)29.7k↓59.5%2MITPHPCI failing

Since Mar 2Pushed 6y ago1 watchersCompare

[ Source](https://github.com/nicklayb/laravel-db-import)[ Packagist](https://packagist.org/packages/nicklayb/laravel-db-import)[ RSS](/packages/nicklayb-laravel-db-import/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (8)Dependencies (2)Versions (10)Used By (0)

Laravel DB Import
=================

[](#laravel-db-import)

###### By Nicolas Boisvert ::

[](#by-nicolas-boisvert--nicklaymecom)

[![Build Status](https://camo.githubusercontent.com/87829cbe9ed6f2656bdfae2cf1bf0dd457640ed217db912e97d95cadceb4af65/68747470733a2f2f7472617669732d63692e6f72672f6e69636b6c6179622f6c61726176656c2d64622d696d706f72742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nicklayb/laravel-db-import)

### Laravel database import package for easy manipulations

[](#laravel-database-import-package-for-easy-manipulations)

Purposes
--------

[](#purposes)

This package will help you import your production database. It can be use to migrate current production server to another server or the checkout the production database to test with the same datas, for example.

Installation
------------

[](#installation)

Install it via composer

```
composer require nicklayb/laravel-db-import

```

Register the service provider in `app.php`

```
Nicklayb\LaravelDbImport\ServiceProvider::class,

```

And then you have to publish it.

```
php artisan vendor:publish

```

Configuration
-------------

[](#configuration)

### Creating import

[](#creating-import)

First of all you need to create your import class. You create a class in any namespace you want that extends the `Nicklayb\LaravelDbImport\Import` class. Here is a an example file, I created it in my commands namespace but feel free to put where you want to. See API part for more parameters

```
