Skip to content

Commit 27fbae9

Browse files
committed
Fixes a bug when running migrate*-all commands on Laravel 5.5+
1 parent 04286a3 commit 27fbae9

File tree

6 files changed

+6
-8
lines changed

6 files changed

+6
-8
lines changed

src/CodeGeneratorServiceProvider.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ protected function createDirectory($path)
103103
*/
104104
protected function codeGeneratorBase($path = null)
105105
{
106-
$base = base_path('resources/laravel-code-generator');
107-
108-
return Helpers::getPathWithSlash($base) . $path;
106+
return base_path('resources/laravel-code-generator/') . $path;
109107
}
110108
}

src/Commands/Migrations/MigrateAllCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class MigrateAllCommand extends MigrationCommandBase
3434
*
3535
* @return void
3636
*/
37-
public function fire()
37+
public function handle()
3838
{
3939
if (!$this->confirmToProceed()) {
4040
return;

src/Commands/Migrations/RefreshAllCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class RefreshAllCommand extends MigrationCommandBase
2929
*
3030
* @return void
3131
*/
32-
public function fire()
32+
public function handle()
3333
{
3434
if (!$this->confirmToProceed()) {
3535
return;

src/Commands/Migrations/ResetAllCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ResetAllCommand extends MigrationCommandBase
3030
*
3131
* @return void
3232
*/
33-
public function fire()
33+
public function handle()
3434
{
3535
if (!$this->confirmToProceed()) {
3636
return;

src/Commands/Migrations/RollbackAllCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class RollbackAllCommand extends MigrationCommandBase
3030
*
3131
* @return void
3232
*/
33-
public function fire()
33+
public function handle()
3434
{
3535
if (!$this->confirmToProceed()) {
3636
return;

src/Commands/Migrations/StatusAllCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class StatusAllCommand extends MigrationCommandBase
2828
*
2929
* @return void
3030
*/
31-
public function fire()
31+
public function handle()
3232
{
3333
$this->migrator->setConnection($this->option('database'));
3434

0 commit comments

Comments
 (0)