Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hnhdigital-os/laravel-database-seeder
https://github.com/hnhdigital-os/laravel-database-seeder
Last synced: about 7 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/hnhdigital-os/laravel-database-seeder
- Owner: hnhdigital-os
- License: mit
- Created: 2019-08-07T04:08:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-06T14:51:15.000Z (over 5 years ago)
- Last Synced: 2025-01-20T20:56:51.610Z (1 day ago)
- Language: PHP
- Size: 30.3 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Seed From File
Provides the ability to import data (raw sql or CSV) from a file or from files found in the supplied folder.
[![Latest Stable Version](https://poser.pugx.org/hnhdigital-os/laravel-database-seeder/v/stable.svg)](https://packagist.org/packages/hnhdigital-os/laravel-database-seeder) [![Total Downloads](https://poser.pugx.org/hnhdigital-os/laravel-database-seeder/downloads.svg)](https://packagist.org/packages/hnhdigital-os/laravel-database-seeder) [![Latest Unstable Version](https://poser.pugx.org/hnhdigital-os/laravel-database-seeder/v/unstable.svg)](https://packagist.org/packages/hnhdigital-os/laravel-database-seeder) [![License](https://poser.pugx.org/hnhdigital-os/laravel-database-seeder/license.svg)](https://packagist.org/packages/hnhdigital-os/laravel-database-seeder)
[![Build Status](https://travis-ci.org/hnhdigital-os/laravel-database-seeder.svg?branch=master)](https://travis-ci.org/hnhdigital-os/laravel-database-seeder) [![StyleCI](https://styleci.io/repos/200970004/shield?branch=master)](https://styleci.io/repos/200970004) [![Test Coverage](https://codeclimate.com/github/hnhdigital-os/laravel-database-seeder/badges/coverage.svg)](https://codeclimate.com/github/hnhdigital-os/laravel-database-seeder/coverage) [![Issue Count](https://codeclimate.com/github/hnhdigital-os/laravel-database-seeder/badges/issue_count.svg)](https://codeclimate.com/github/hnhdigital-os/laravel-database-seeder) [![Code Climate](https://codeclimate.com/github/hnhdigital-os/laravel-database-seeder/badges/gpa.svg)](https://codeclimate.com/github/hnhdigital-os/laravel-database-seeder)
This package has been developed by H&H|Digital, an Australian botique developer. Visit us at [hnh.digital](http://hnh.digital).
## Prerequisites
* PHP >= 7.2
* Laravel >= 5.8## Install
Via composer:
`composer require hnhdigital-os/laravel-database-seeder ~1.0`
## Usage
### CSV
`# php artisan db:seed-from-csv {path?} {--connection}`
* {path} -A file or a directory of files to import.
* {--connection} - Set the connection that will be used when importing. Defaults to 'database.default'.### SQL
`# php artisan db:seed-from-sql {path?} {--connection}`
* {path} - A file or a directory of files to import.
* {--connection} - Set the connection that will be used when importing. Defaults to 'database.default'.## Contributing
Please see [CONTRIBUTING](https://github.com/hnhdigital-os/laravel-database-seeder/blob/master/CONTRIBUTING.md) for details.
## Credits
* [Rocco Howard](https://github.com/therocis)
* [All Contributors](https://github.com/hnhdigital-os/laravel-database-seeder/contributors)## License
The MIT License (MIT). Please see [License File](https://github.com/hnhdigital-os/laravel-database-seeder/blob/master/LICENSE) for more information.