/home/techb158/ileadtechnology.com/SSM/vendor/aloha/twilio/src/Commands
NameSizeModeActions
TwilioCallCommand.php21330644editdlrm
TwilioSmsCommand.php20420644editdlrm
Edit: /home/techb158/ileadtechnology.com/SSM/vendor/aloha/twilio/src/Commands/TwilioSmsCommand.php (2042B)
twilio = $twilio; } /** * Execute the console command. */ public function fire() { $this->line('Sending SMS via Twilio to: '.$this->argument('phone')); // Grab the text option if specified $text = $this->option('text'); // If we havent specified a message, setup a default one if (is_null($text)) { $text = 'This is a test message sent from the artisan console'; } $this->line($text); $this->twilio->message($this->argument('phone'), $text); } /** * Proxy method for Laravel 5.1+ */ public function handle() { return $this->fire(); } /** * Get the console command arguments. * * @return array */ protected function getArguments() { return [ ['phone', InputArgument::REQUIRED, 'The phone number that will receive a test message.'], ]; } /** * Get the console command options. * * @return array */ protected function getOptions() { return [ ['text', null, InputOption::VALUE_OPTIONAL, 'Optional message that will be sent.', null], ]; } }