/** * Handle the command. * * @param CreateStaffCommand $command * @return void */ public function handle(CreateStaffCommand $command) { $staff_object = Staff::make($command->name, str_slug($command->name, '-'), $command->intro, $command->description, $command->email); $staff = $this->repo->save($staff_object); Event::fire(new StaffWasCreated($staff)); return $staff; }