PHPackages                             lingxi/hashids - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. lingxi/hashids

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

lingxi/hashids
==============

A Hashids bridge for Laravel

v0.1.1(7y ago)183.3kMITPHP

Since Mar 19Pushed 7y ago3 watchersCompare

[ Source](https://github.com/LingxiTeam/laravel-hashids)[ Packagist](https://packagist.org/packages/lingxi/hashids)[ RSS](/packages/lingxi-hashids/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (6)Versions (10)Used By (0)

Laravel Hashids
===============

[](#laravel-hashids)

[![Latest Stable Version](https://camo.githubusercontent.com/8d36ceac5e959b51774d78be0a85bbda1044e43f5507a946b354b266e39c5b5a/68747470733a2f2f706f7365722e707567782e6f72672f6c696e6778692f686173686964732f762f737461626c65)](https://packagist.org/packages/lingxi/hashids)[![Total Downloads](https://camo.githubusercontent.com/fa5e428c8b50cfe76a9d305b2a9e26f742a36f1145988eafc6a2dbcd3dccd9c9/68747470733a2f2f706f7365722e707567782e6f72672f6c696e6778692f686173686964732f646f776e6c6f616473)](https://packagist.org/packages/lingxi/hashids)[![License](https://camo.githubusercontent.com/4e141a4b83dce844968a2f3bf5b4c83c23ad27ff3d7da8e9c8c4b6658fe7060a/68747470733a2f2f706f7365722e707567782e6f72672f6c696e6778692f686173686964732f6c6963656e7365)](https://packagist.org/packages/lingxi/hashids)

### 安装

[](#安装)

```
composer require lingxi/hashids
```

### 添加到 app.php

[](#添加到-appphp)

```
Lingxi\Hashids\HashidsServiceProvider::class
```

```
'Hashids' => Lingxi\Hashids\Facades\Hashids::class
```

### Config

[](#config)

```
php artisan vendor:publish --provider='Lingxi\Hashids\HashidsServiceProvider'
```

```
