You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sure, here's a README.md section that explains the configuration options for your Laravel Calendar Table package:
57
+
58
+
## Configuration
59
+
60
+
The Laravel Calendar Table package provides several configuration options that you can adjust to suit your needs. You can find these options in the `config.php` file.
61
+
62
+
### Table Name
63
+
64
+
The `table_name` option allows you to define a custom table name for the database records. By default, it is set to `'date_dimension'`.
65
+
66
+
```php
67
+
'table_name' => 'date_dimension',
68
+
```
69
+
70
+
### Seasons
71
+
72
+
The `seasons` array allows you to define the start month for each season. By default, it is configured for the meteorological seasons of the Northern Hemisphere:
73
+
74
+
- Spring starts in March
75
+
- Summer starts in June
76
+
- Autumn starts in September
77
+
- Winter starts in December
78
+
79
+
If you are in the Southern Hemisphere, you should reconfigure the seasons to start approximately six months later:
80
+
81
+
- Spring starts in September
82
+
- Summer starts in December
83
+
- Autumn starts in March
84
+
- Winter starts in June
85
+
86
+
```php
87
+
'seasons' => [
88
+
'Spring' => 3,
89
+
'Summer' => 6,
90
+
'Autumn' => 9,
91
+
'Winter' => 12,
92
+
],
93
+
```
94
+
95
+
### Fiscal Year Start Month
96
+
97
+
The `fiscal_year_start_month` option allows you to define the start month of the fiscal year. The value should be an integer between 1 (January) and 12 (December). By default, it is set to 10, meaning the fiscal year starts in October. Adjust this setting to match your own fiscal year.
98
+
99
+
```php
100
+
'fiscal_year_start_month' => 10,
101
+
```
102
+
103
+
### Date Range
104
+
105
+
The `date_range` array allows you to define the max start and end year range for populating the calendar table.
106
+
107
+
-`start_year`: This option defines the earliest year for the calendar table. Defaults to 20 years before the current year.
108
+
109
+
-`end_year`: This option defines the latest year for the calendar table. Defaults to 20 years after the current year.
* Configuration file for the Laravel Calendar Table package.
5
-
*/
6
3
return [
7
4
/**
8
-
* User defined custom table name for database records.
5
+
* Defines the database table name.
9
6
*/
10
7
'table_name' => 'date_dimension',
11
8
12
9
/**
13
-
* The 'seasons' array defines the start month for each season.
14
-
*
15
-
* This configuration assumes the meteorological seasons of the Northern Hemisphere, where the seasons are defined as follows:
16
-
* - Spring starts in March (3rd month)
17
-
* - Summer starts in June (6th month)
18
-
* - Autumn starts in September (9th month)
19
-
* - Winter starts in December (12th month)
20
-
*
21
-
* Users in the Southern Hemisphere should reconfigure the seasons approximately six months offset from those of the Northern Hemisphere:
22
-
* - Spring starts in September
23
-
* - Summer starts in December
24
-
* - Autumn starts in March
25
-
* - Winter starts in June
10
+
* Defines the start month for each season.
26
11
*/
27
12
'seasons' => [
28
13
'Spring' => 3,
@@ -32,13 +17,15 @@
32
17
],
33
18
34
19
/**
35
-
* The 'fiscal_year_start_month' option defines the start month of the fiscal year.
36
-
*
37
-
* Months are represented as numbers between 1 (January) and 12 (December).
38
-
*
39
-
* In this case, the fiscal year starts in October (10th month). This might be the case for a company or government that operates on a fiscal year that begins on October 1 and ends on September 30 of the following year.
40
-
*
41
-
* Users should adjust this setting to match their own fiscal year. For example, if the fiscal year starts in July, they would set this option to 7.
20
+
* Defines the start month of the fiscal year.
42
21
*/
43
22
'fiscal_year_start_month' => 10,
23
+
24
+
/**
25
+
* Defines the valid year range to populate the table.
0 commit comments