Package Data | |
---|---|
Maintainer Username: | Piterden |
Maintainer Contact: | efremov.a.denis@gmail.com (Denis Efremov) |
Package Create Date: | 2017-04-06 |
Package Last Update: | 2017-06-17 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-22 15:01:43 |
Package Statistics | |
---|---|
Total Downloads: | 18 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 2 |
Total Forks: | 0 |
Total Open Issues: | 0 |
seeder_make-extension
for PyroCMS.Enhancement of standard
make:seeder
command.
Run
$ composer require defr/seeder_make-extension
Either, add to require
section of composer.json
:
"defr/seeder_make-extension": "~1.0.0",
Run composer update
command, which will install extension to the core
folder!
Then you would need to install extension to PyroCMS
$ php artisan extension:install seeder_make
or
$ php artisan addon:install defr.extension.seeder_make
$ 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
$ php artisan make:seeder defr.module.backup_manager
<?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()
{
}
}