コード例 #1
0
 /**
  * Handle the command.
  *
  * @param  CreateStaffCommand  $command
  * @return void
  */
 public function handle(CreateStaffCommand $command)
 {
     $staff_object = Staff::make($command->name, $command->intro, $command->description, $command->website, $command->type_id);
     $staff = $this->repo->save($staff_object);
     Event::fire(new StaffWasCreated($staff));
     return $staff;
 }