|
2 | 2 |
|
3 | 3 | // config for HPWebdeveloper/LaravelPayPocket |
4 | 4 |
|
5 | | -/** |
6 | | - * The 'log_reference_generator' should be a numeric array with three elements: |
7 | | - * - The first element should be the fully qualified name of a class that contains static methods. |
8 | | - * This includes the namespace of the class. |
9 | | - * - The second element should be the name of a static method available in the specified class. |
10 | | - * - The third element should be an array of optional parameters to pass to the static method. |
11 | | - * For example, the default generator is configured as follows: |
12 | | - * [\Illuminate\Support\Str::class, 'random', [12]], which uses the 'random' static method |
13 | | - * from the \Illuminate\Support\Str class with 12 as a parameter. |
14 | | - */ |
15 | 5 | return [ |
| 6 | + |
| 7 | + /* |
| 8 | + |-------------------------------------------------------------------------- |
| 9 | + | Reference Generator Configuration |
| 10 | + |-------------------------------------------------------------------------- |
| 11 | + | |
| 12 | + | This configuration allows you to customize the generation of log reference strings |
| 13 | + | within the LaravelPayPocket package. |
| 14 | + | |
| 15 | + | - log_reference_length: The length of the generated reference string. |
| 16 | + | - log_reference_prefix: The prefix for the generated reference string. |
| 17 | + | - log_reference_generator_class: The fully qualified name of the class containing static methods for generation. |
| 18 | + | - log_reference_generator_method: The name of the static method available in the generator class. |
| 19 | + | |
| 20 | + | This is how it works by default in the code: |
| 21 | + | Illuminate\Support\Str::random(12) |
| 22 | + | |
| 23 | + */ |
| 24 | + |
16 | 25 | 'log_reference_length' => 12, |
17 | 26 | 'log_reference_prefix' => '', |
18 | 27 | 'log_reference_generator_class' => Illuminate\Support\Str::class, |
|
0 commit comments