/**
  * Handle the command
  *
  * @param BaseCommand|RegisterUserCommand $command
  *
  * @return mixed
  */
 public function handle(BaseCommand $command)
 {
     $user = new User($command->all());
     $user->save();
     App::make('Altwallets\\Services\\UserMailer')->sendRegistrationEmail($user);
     return $user;
 }
 /**
  * Handle the command
  *
  * @param EditCurrencyCommand|BaseCommand $command
  *
  * @return mixed
  */
 public function handle(BaseCommand $command)
 {
     $currency = $command->currency;
     $currency->fill($command->all());
     $currency->save();
     return $currency;
 }
 function __construct(array $attributes, Wallet $sender)
 {
     parent::__construct($attributes);
     $this->sender = $sender;
 }
 /**
  * @param array  $attributes
  * @param Wallet $wallet
  */
 function __construct(array $attributes, Wallet $wallet)
 {
     parent::__construct($attributes);
     $this->wallet = $wallet;
 }
 /**
  * Handle the command
  *
  * @param $command
  *
  * @return mixed
  */
 public function handle(BaseCommand $command)
 {
     $user = User::create($command->all());
     return $user;
 }
 /**
  * Handle the command
  *
  * @param NewCurrencyCommand|BaseCommand $command
  *
  * @return mixed
  */
 public function handle(BaseCommand $command)
 {
     $currency = Currency::create($command->all());
     return $currency;
 }
 function __construct(array $attributes, Currency $currency)
 {
     parent::__construct($attributes);
     $this->currency = $currency;
 }