Skip to content

Commit 28be370

Browse files
Modify comment and style of config file (#24)
* Modify comment --------- Co-authored-by: @SSEsmaeeli Co-authored-by: @HPWebdeveloper Hamed Panjeh <panjeh@gmail.com>
1 parent 805c8f1 commit 28be370

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed

config/pay-pocket.php

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,26 @@
22

33
// config for HPWebdeveloper/LaravelPayPocket
44

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-
*/
155
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+
1625
'log_reference_length' => 12,
1726
'log_reference_prefix' => '',
1827
'log_reference_generator_class' => Illuminate\Support\Str::class,

0 commit comments

Comments
 (0)