Skip to content

Commit

Permalink
Merge pull request #141 from aloha/feature/laravel51-console
Browse files Browse the repository at this point in the history
Added Laravel 5.1 fix for cli commands
  • Loading branch information
hannesvdvreken authored Sep 19, 2017
2 parents a731e78 + 00c99de commit 5289920
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Commands/TwilioCallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down
8 changes: 8 additions & 0 deletions src/Commands/TwilioSmsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit 5289920

Please sign in to comment.