From 00c99de0b1c213777c07b5ca41bed0c80e7ead86 Mon Sep 17 00:00:00 2001 From: Hannes Van De Vreken Date: Tue, 19 Sep 2017 14:07:17 +0200 Subject: [PATCH] Added Laravel 5.1 fix for cli commands --- src/Commands/TwilioCallCommand.php | 8 ++++++++ src/Commands/TwilioSmsCommand.php | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/Commands/TwilioCallCommand.php b/src/Commands/TwilioCallCommand.php index 97a8396..ec60756 100644 --- a/src/Commands/TwilioCallCommand.php +++ b/src/Commands/TwilioCallCommand.php @@ -58,6 +58,14 @@ public function fire() $this->twilio->call($this->argument('phone'), $url, [], $from); } + /** + * Proxy method for Laravel 5.1+ + */ + public function handle() + { + return $this->fire(); + } + /** * Get the console command arguments. * diff --git a/src/Commands/TwilioSmsCommand.php b/src/Commands/TwilioSmsCommand.php index 0e4a45e..db0f6d9 100644 --- a/src/Commands/TwilioSmsCommand.php +++ b/src/Commands/TwilioSmsCommand.php @@ -58,6 +58,14 @@ public function fire() $this->twilio->message($this->argument('phone'), $text); } + /** + * Proxy method for Laravel 5.1+ + */ + public function handle() + { + return $this->fire(); + } + /** * Get the console command arguments. *