You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Once Hashids is installed you need to register the service provider with the application. Open up `config/app.php` and find the `providers` key.
24
+
**Without Package Auto-Discovery**
25
+
26
+
Once Hashids is installed you need to register the service provider and facade with the application. Open up `config/app.php` and find the `providers` and `aliases` keys.
26
27
27
28
```php
28
29
'providers' => [
29
30
Torann\Hashids\HashidsServiceProvider::class,
30
31
]
31
-
```
32
32
33
-
> There is no need to add the Facade, the package will add it for you.
- Several public functions are renamed to be more appropriate:
107
-
- Function `encrypt()` changed to `encode()`
108
-
- Function `decrypt()` changed to `decode()`
109
-
- Function `encryptHex()` changed to `encodeHex()`
110
-
- Function `decryptHex()` changed to `decodeHex()`
111
-
112
-
Hashids was designed to encode integers, primary ids at most. Hashids is the wrong algorithm to encrypt sensitive data. So to encourage more appropriate use, `encrypt/decrypt` is being "downgraded" to `encode/decode`.
113
-
114
-
- Version tag added: `1.0`
115
-
-`README.md` updated
116
-
117
-
118
90
All credit for Hashids goes to Ivan Akimov (@ivanakimov), thanks to for making it!
0 commit comments