alwaysFrom() public method

Sets the number that message should always be sent from.
public alwaysFrom ( $number )
$number
 /**
  * Register the service provider.
  *
  * @return void
  */
 public function register()
 {
     $this->app->bind('sms', function ($app) {
         $sender = $this->registerSender();
         $sms = new SMS($sender);
         $sms->setContainer($app);
         $sms->setLogger($app['log']);
         $sms->setQueue($app['queue']);
         //Set the from and pretending settings
         if ($from = config('sms.from', false)) {
             $sms->alwaysFrom($from);
         }
         $sms->setPretending(config('sms.pretend', false));
         return $sms;
     });
 }
Example #2
0
 /**
  * Sets the number that message should always be sent from.
  *
  * @param $number
  * @static 
  */
 public static function alwaysFrom($number)
 {
     return \SimpleSoftwareIO\SMS\SMS::alwaysFrom($number);
 }