protected function save($origin, $short = null)
    {
        $shortener = Shortener::updateOrCreate(
            ['hash' => hash('sha512', $origin)],
            ['url' => $origin, 'short' => $short]
        );

        return $shortener->exists ? $shortener->getKey() : false;
    }