Exemplo n.º 1
0
 public function __construct(Builder $builder, Config $config)
 {
     $this->builder = $builder;
     $config->description("Generate a new migration");
     $config->argument('config')->description("Migration configuration name, defaults to 'default'");
     parent::__construct($config);
 }
Exemplo n.º 2
0
 public function __construct(Builder $builder, Config $config)
 {
     $this->builder = $builder;
     $config->description("Create or drop a database");
     $config->argument('action')->required()->description("Either 'create' or 'drop'");
     $config->argument('config')->description("Migration configuration name, defaults to 'default'");
     parent::__construct($config);
 }
Exemplo n.º 3
0
 public function __construct(Builder $builder, Config $config)
 {
     $this->builder = $builder;
     $config->description("Seed the database with data");
     $config->argument('config')->description("Seed configuration name, defaults to 'default'");
     $config->option('truncate')->flag()->description("Truncate the tables before inserting the data.");
     parent::__construct($config);
 }