Skip to content

Commit 5289920

Browse files
Merge pull request #141 from aloha/feature/laravel51-console
Added Laravel 5.1 fix for cli commands
2 parents a731e78 + 00c99de commit 5289920

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/Commands/TwilioCallCommand.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ public function fire()
5858
$this->twilio->call($this->argument('phone'), $url, [], $from);
5959
}
6060

61+
/**
62+
* Proxy method for Laravel 5.1+
63+
*/
64+
public function handle()
65+
{
66+
return $this->fire();
67+
}
68+
6169
/**
6270
* Get the console command arguments.
6371
*

src/Commands/TwilioSmsCommand.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ public function fire()
5858
$this->twilio->message($this->argument('phone'), $text);
5959
}
6060

61+
/**
62+
* Proxy method for Laravel 5.1+
63+
*/
64+
public function handle()
65+
{
66+
return $this->fire();
67+
}
68+
6169
/**
6270
* Get the console command arguments.
6371
*

0 commit comments

Comments
 (0)