mirror of
https://github.com/superhelio/commands.git
synced 2026-02-01 21:47:36 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3d635a04b9 | ||
|
|
4f51fd8c51 |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -1,2 +1 @@
|
|||||||
composer.lock
|
|
||||||
vendor
|
vendor
|
||||||
|
|||||||
@@ -4,7 +4,12 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
||||||
and this project adheres to [Semantic Versioning](http://semver.org/).
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||||
|
|
||||||
## [1.1.0](https://github.com/superhelio/commands/tree/2.0.0) (2017-08-27)
|
## [1.1.1](https://github.com/superhelio/commands/tree/1.1.1) (2017-08-27)
|
||||||
|
- Typo fixes
|
||||||
|
- Removal of dead/unnecessary code
|
||||||
|
- Added composer.lock for faster builds
|
||||||
|
|
||||||
|
## [1.1.0](https://github.com/superhelio/commands/tree/1.1.0) (2017-08-27)
|
||||||
- New command: `superhelio:gozer` with tests
|
- New command: `superhelio:gozer` with tests
|
||||||
|
|
||||||
## [1.0.0](https://github.com/superhelio/commands/tree/1.0.0) (2017-02-08)
|
## [1.0.0](https://github.com/superhelio/commands/tree/1.0.0) (2017-02-08)
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ public function register()
|
|||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
- *superhelio:gozer*
|
- *superhelio:gozer*
|
||||||
- Force delete database tables that has your table prefix
|
- Force delete database tables that have your table prefix
|
||||||
- `php artisan superhelio:gozer`
|
- `php artisan superhelio:gozer`
|
||||||
- *superhelio:reload*
|
- *superhelio:reload*
|
||||||
- Reset database, migrate and seed
|
- Reset database, migrate and seed
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "superhelio/commands",
|
"name": "superhelio/commands",
|
||||||
"description": "Laravel Commands",
|
"description": "This is a collection of Laravel Artisan commands created to help everyone in their development work.",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"laravel",
|
"laravel",
|
||||||
"superhelio",
|
"superhelio",
|
||||||
|
|||||||
3293
composer.lock
generated
Normal file
3293
composer.lock
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -20,21 +20,13 @@ class Gozer extends Command
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
protected $description = 'Force delete database tables that has your table prefix';
|
protected $description = 'Force delete database tables that have your table prefix';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var string Database table prefix
|
* @var string Database table prefix
|
||||||
*/
|
*/
|
||||||
private $dbPrefix = '';
|
private $dbPrefix = '';
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a new command instance.
|
|
||||||
*/
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
parent::__construct();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute the console command.
|
* Execute the console command.
|
||||||
*
|
*
|
||||||
@@ -51,12 +43,12 @@ class Gozer extends Command
|
|||||||
|
|
||||||
$this->info('
|
$this->info('
|
||||||
|
|
||||||
________
|
________
|
||||||
/ _____/ ____________ ___________
|
/ _____/ ____________ ___________
|
||||||
/ \ ___ / _ \___ // __ \_ __ \
|
/ \ ___ / _ \___ // __ \_ __ \
|
||||||
\ \_\ ( <_> ) /\ ___/| | \/
|
\ \_\ ( <_> ) /\ ___/| | \/
|
||||||
\______ /\____/_____ \\___ >__|
|
\______ /\____/_____ \\___ >__|
|
||||||
\/ \/ \/
|
\/ \/ \/
|
||||||
|
|
||||||
');
|
');
|
||||||
|
|
||||||
@@ -88,6 +80,7 @@ class Gozer extends Command
|
|||||||
*/
|
*/
|
||||||
if ($tables->count() < 1) {
|
if ($tables->count() < 1) {
|
||||||
$this->info('There are no tables, only Zuul.');
|
$this->info('There are no tables, only Zuul.');
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -20,14 +20,6 @@ class Reload extends Command
|
|||||||
*/
|
*/
|
||||||
protected $description = 'Rollback migrations, migrate and run seeds';
|
protected $description = 'Rollback migrations, migrate and run seeds';
|
||||||
|
|
||||||
/**
|
|
||||||
* Create a new command instance.
|
|
||||||
*/
|
|
||||||
public function __construct()
|
|
||||||
{
|
|
||||||
parent::__construct();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Execute the console command.
|
* Execute the console command.
|
||||||
*
|
*
|
||||||
@@ -53,6 +45,8 @@ class Reload extends Command
|
|||||||
'--verbose' => 3
|
'--verbose' => 3
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,6 @@ class ServiceProvider extends \Illuminate\Support\ServiceProvider
|
|||||||
{
|
{
|
||||||
public function boot()
|
public function boot()
|
||||||
{
|
{
|
||||||
$this->loadMigrationsFrom(realpath(__DIR__ . '/../migrations'));
|
$this->loadMigrationsFrom(dirname(__DIR__) . '/migrations');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user