Skip to content

Commit 2d4dd80

Browse files
committed
update config file
1 parent f7965dc commit 2d4dd80

File tree

1 file changed

+38
-2
lines changed

1 file changed

+38
-2
lines changed

config/laravel_ticket.php

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,63 @@
77
|--------------------------------------------------------------------------
88
|
99
| You can change the table names depends on your application structure
10-
| the value in the below tables, is the current table name, and if
11-
| are happy with it, leave it as it is.
10+
| the values in the below tables, is the current table name, and if
11+
| are happy with it, leave it as it is, if not. You may read the related
12+
| instruction before you change the values.
1213
|
1314
*/
1415
'table_names' => [
16+
/**
17+
* Tickets table
18+
*/
1519
'tickets' => 'tickets',
20+
/**
21+
* Categories table for the tickets
22+
*/
1623
'categories' => 'categories',
24+
/**
25+
* Labels table for the tickets
26+
*/
1727
'labels' => 'labels',
28+
/**
29+
* Messages table to appears in the ticket
30+
*/
1831
'messages' => [
1932
'table' => 'messages',
33+
/**
34+
* This is the foreing key for associated to the ticket
35+
* If you renamed the ticket table, you should consider
36+
* changing this column as well to follow the laravel
37+
* convention, "table_id"
38+
*
39+
* @see https://laravel.com/docs/9.x/eloquent-relationships#one-to-many
40+
*/
2041
'columns' => [
2142
'ticket_foreing_id' => 'ticket_id',
2243
],
2344
],
45+
/**
46+
* Many to Many relationship between the tickets table
47+
* and the labels table, if you changed the one of the
48+
* tables above, you may consider change the columns
49+
* below.
50+
*
51+
* @see https://laravel.com/docs/9.x/eloquent-relationships#many-to-many
52+
*/
2453
'label_ticket' => [
2554
'table' => 'label_ticket',
2655
'columns' => [
2756
'label_foreign_id' => 'label_id',
2857
'ticket_foreign_id' => 'ticket_id',
2958
],
3059
],
60+
/**
61+
* Many to Many relationship between the tickets table
62+
* and the categories table, the above description, applies
63+
* to this also
64+
*
65+
* @see https://laravel.com/docs/9.x/eloquent-relationships#many-to-many
66+
*/
3167
'category_ticket' => [
3268
'table' => 'category_ticket',
3369
'columns' => [

0 commit comments

Comments
 (0)