/** * Handle the command. * * @param CreateTagCommand $command * @return void */ public function handle(CreateTagCommand $command) { $active = 1; // $active = ($command->active === 'on') ? 1 : 0; $tag_object = Tags::make($command->tag, $active); $tag = $this->repo->save($tag_object); Event::fire(new TagWasCreated($tag)); return $tag; }