예제 #1
0
 /**
  * Handle the command.
  *
  * @param  CreateCostCommand  $command
  * @return void
  */
 public function handle(CreateCostCommand $command)
 {
     $cost = Cost::create(['salary' => $command->salary, 'save' => $command->save, 'spend' => $command->spend]);
     if (!empty($cost)) {
         return $cost;
     }
     return false;
 }