-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
secure-code.php
87 lines (75 loc) · 2.85 KB
/
secure-code.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
return [
/*
|--------------------------------------------------------------------------
| Custom Database Connection
|--------------------------------------------------------------------------
|
| This configuration value is used to override the database connection
| that will be used by models of this package. If set to `null`, your
| application's default database connection will be used.
|
*/
'connection' => null,
/*
|--------------------------------------------------------------------------
| Code Generation Rules
|--------------------------------------------------------------------------
|
| These are the default rules for generating secure codes.
| You can customize these rules in the configuration file to meet your needs.
|
| NOTE: Maximum code length is 19.
|
*/
'code_length' => 6,
'character_repeated_limit' => 3,
'sequence_length_limit' => 3,
'unique_characters_limit' => 3,
/*
|--------------------------------------------------------------------------
| Code format
|--------------------------------------------------------------------------
|
| Define the format of the code. The options are
| 'numeric', 'alphanumeric' or 'mixed'.
| The default for numeric format is '0123456789'.
|
*/
'code_format' => 'mixed',
/*
|--------------------------------------------------------------------------
| Code characters
|--------------------------------------------------------------------------
|
| Define the characters of the generated code.
| The code generator dynamically selects the appropriate
| character set depending on the chosen code format.
|
*/
'numeric_characters' => '0123456789', // Default for numeric format.
'alphanumeric_characters' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ',
'mixed_characters' => '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*()-_=+[]{};:<>,.?/',
/*
|--------------------------------------------------------------------------
| Config Validation
|--------------------------------------------------------------------------
|
| Choose whether you want the config to be validated. This
| can be useful for ensuring that your config values are
| safe to use.
|
*/
'validate_config' => true,
/*
|--------------------------------------------------------------------------
| Eloquent Factories
|--------------------------------------------------------------------------
|
| Define eloquent factories that you will use for your testing purposes.
|
*/
'factories' => [
\Veeqtoh\SecureCode\Models\SecureCode::class => \Veeqtoh\SecureCode\Models\Factories\SecureCodeFactory::class,
],
];