当前位置: 首页 > 工具软件 > laravelCMS > 使用案例 >

hashids php 如何使用,config/hashids.php · 吃货研究所/laravelcms - Gitee.com

扶文光
2023-12-01

/*

* This file is part of Laravel Hashids.

*

* (c) Vincent Klaiber

*

* For the full copyright and license information, please view the LICENSE

* file that was distributed with this source code.

*/

return [

/*

|--------------------------------------------------------------------------

| Default Connection Name

|--------------------------------------------------------------------------

|

| Here you may specify which of the connections below you wish to use as

| your default connection for all work. Of course, you may use many

| connections at once using the manager class.

|

*/

'default' => 'main',

/*

|--------------------------------------------------------------------------

| Hashids Connections

|--------------------------------------------------------------------------

|

| Here are each of the connections setup for your application. Example

| configuration has been included, but you may add as many connections as

| you would like.

|

*/

'connections' => [

'main' => [

'salt' => 'laravelpcms',

'length' => '16',

'alphabet' => 'ABCDEFGHIJKMNLOPQRSTUVWXYZabcdefghijkmnlopqrstuvwxyz0123456789',

],

'alternative' => [

'salt' => 'your-salt-string',

'length' => 'your-length-integer',

'alphabet' => 'your-alphabet-string',

],

],

];

一键复制

编辑

Web IDE

原始数据

按行查看

历史

 类似资料: