2017 © Pedro Peláez
 

streams-addon seeder_make-extension

The Streams Platform addon, extended `make:seeder` artisan command.

image

defr/seeder_make-extension

The Streams Platform addon, extended `make:seeder` artisan command.

  • Saturday, June 17, 2017
  • by Piterden
  • Repository
  • 1 Watchers
  • 1 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Seeder Make Command

Streams Platform Addon. seeder_make-extension for PyroCMS.

Enhancement of standard make:seeder command., (*1)

Features

  • Needs addon to be selected;
  • Checks for available streams in addon;
  • Ask for which of streams you would like to create seeder;
  • Creates one seeder for addon and by one on each selected stream;
  • Included config repository and main stream repository.

Installation

Step 1

Run, (*2)

$ composer require defr/seeder_make-extension

Either, add to require section of composer.json:, (*3)

    "defr/seeder_make-extension": "~1.0.0",

Run composer update command, which will install extension to the core folder!, (*4)

Step 2

Then you would need to install extension to PyroCMS, (*5)

$ php artisan extension:install seeder_make

or, (*6)

$ php artisan addon:install defr.extension.seeder_make

Usage

Available options

$ php artisan help make:seeder
Usage:
  make:seeder [options] [--] <namespace>

Arguments:
  namespace              The namespace of the addon

Options:
      --stream[=STREAM]  The stream slug.
      --shared           Indicates if the addon should be created in shared addons.
  -h, --help             Display this help message
  -q, --quiet            Do not output any message
  -V, --version          Display this application version
      --ansi             Force ANSI output
      --no-ansi          Disable ANSI output
  -n, --no-interaction   Do not ask any interactive question
      --env[=ENV]        The environment the command should run under
      --app[=APP]        The application the command should run under.
  -v|vv|vvv, --verbose   Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Creating seeders

$ php artisan make:seeder defr.module.backup_manager

Examples

Example of generated stream seeder

<?php namespace Defr\BackupManagerModule\Dump;

use Defr\BackupManagerModule\Dump\Contract\DumpRepositoryInterface;
use Anomaly\Streams\Platform\Database\Seeder\Seeder;
use Illuminate\Contracts\Config\Repository;

class DumpSeeder extends Seeder
{

    /**
     * The Dump repository.
     *
     * @var DumpRepositoryInterface
     */
    protected $dumps;

    /**
     * The config repository.
     *
     * @var Repository
     */
    protected $config;

    /**
     * Create a new DumpSeeder instance.
     *
     * @param Repository $config
     * @param DumpRepositoryInterface $dumps
     */
    public function __construct(
        Repository $config,
        DumpRepositoryInterface $dumps
    )
    {
        $this->config = $config;
        $this->dumps = $dumps;
    }

    /**
     * Run the seeder
     */
    public function run()
    {

    }
}

The Versions

17/06 2017

v1.0.2

1.0.2.0

The Streams Platform addon, extended `make:seeder` artisan command.

  Sources   Download

MIT

The Requires

 

laravel command artisan seeder addon streams-platform pyrocms

17/06 2017

dev-master

9999999-dev

The Streams Platform addon, extended `make:seeder` artisan command.

  Sources   Download

MIT

The Requires

 

laravel command artisan seeder addon streams-platform pyrocms

17/06 2017

1.0.x-dev

1.0.9999999.9999999-dev

The Streams Platform addon, extended `make:seeder` artisan command.

  Sources   Download

MIT

The Requires

 

laravel command artisan seeder addon streams-platform pyrocms

17/06 2017

v1.0.3

1.0.3.0

The Streams Platform addon, extended `make:seeder` artisan command.

  Sources   Download

MIT

The Requires

 

laravel command artisan seeder addon streams-platform pyrocms

17/06 2017

v1.0.1

1.0.1.0

The Streams Platform addon, extended `make:seeder` artisan command.

  Sources   Download

MIT

The Requires

 

laravel command artisan seeder addon streams-platform pyrocms

17/06 2017

v1.0.0

1.0.0.0

The Streams Platform addon, extended `make:seeder` artisan command.

  Sources   Download

MIT

The Requires

 

laravel command artisan seeder addon streams-platform pyrocms

07/04 2017

v1.0.0-beta.1

1.0.0.0-beta1

Powered for the Streams Platform, `make:seeder` artisan command.

  Sources   Download

MIT

artisan seeder streams-platform pyrocms laravel-cms