3ba96cf18b
Close #381
60 lines
1.4 KiB
PHP
60 lines
1.4 KiB
PHP
<?php
|
|
|
|
/*
|
|
* This file is part of Laravel Hashids.
|
|
*
|
|
* (c) Vincent Klaiber <hello@vinkla.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
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' => env('HASH_SALT', 'your-salt-string'),
|
|
'length' => env('HASH_LENGTH', 18),
|
|
],
|
|
|
|
'alternative' => [
|
|
'salt' => 'your-salt-string',
|
|
'length' => 'your-length-integer',
|
|
],
|
|
|
|
],
|
|
|
|
/*
|
|
* Default prefix for ids
|
|
*/
|
|
'default_prefix' => 'h:',
|
|
|
|
];
|