Best laravel framework open-source packages.

Seeders

Database seeders for our laravel applications
Updated 11 months ago

THIS PACKAGE HAS BEEN ABANDONED

Seeders

Latest Version on GitHub Software License SensioLabsInsight Quality Score

Database seeders for our laravel applications.

Install

This package is custom built for Spatie projects and is therefore not registered on packagist. In order to install it via composer you must specify this extra repository in composer.json:

"repositories": [ { "type": "composer", "url": "https://satis.spatie.be/" } ]

You can install the package via composer:

$ composer require spatie/seeders

Overview

This package provides the base database seeders for our laravel applications. The Spatie\Seeders\DatabaseSeeder class adds some extra utility to laravel's seeder.

Other classes are for recurring, specific parts of our application.

Example

use Spatie\Seeders\DatabaseSeeder as BaseDatabaseSeeder;
use Spatie\Seeders\StringSeeder;

class DatabaseSeeder extends BaseDatabaseSeeder
{
    public function run()
    {
        parent::run();

        $this->call(StringSeeder::class);
        $this->call(MySeeder::class);
    }
}

Change log

Please see CHANGELOG for more information what has changed recently.

Security

If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.