From ea1c4c8397c2895e6e8561f340e6fa046e2ad439 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 11 Oct 2018 16:13:11 -0300 Subject: [PATCH] Laravel 5.6 commands must be called from handle method. --- src/Commands/MakeMigrationJsonCommand.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Commands/MakeMigrationJsonCommand.php b/src/Commands/MakeMigrationJsonCommand.php index 83aa221..5d075dc 100644 --- a/src/Commands/MakeMigrationJsonCommand.php +++ b/src/Commands/MakeMigrationJsonCommand.php @@ -78,6 +78,16 @@ public function __construct(MakeMigrationJson $makeMigrationJson, Filesystem $fi // Set Filesystem instance $this->filesystem = $filesystem; } + + /** + * Laravel 5.6 commands must be called from handle method. + * + * @return mixed + */ + public function handle() + { + return $this->fire(); + } /** * Execute the console command.