@@ -61,7 +61,7 @@ public function messages(): HasMany
61
61
$ tableName = config ('laravel_ticket.table_names.messages ' , 'messages ' );
62
62
63
63
return $ this ->hasMany (
64
- Message::class ,
64
+ config ( ' laravel_ticket.models.message ' ) ,
65
65
(string ) $ tableName ['columns ' ]['ticket_foreign_id ' ],
66
66
);
67
67
}
@@ -74,7 +74,7 @@ public function categories(): BelongsToMany
74
74
$ table = config ('laravel_ticket.table_names.category_ticket ' , 'category_ticket ' );
75
75
76
76
return $ this ->belongsToMany (
77
- Category::class ,
77
+ config ( ' laravel_ticket.models.category ' ) ,
78
78
$ table ['table ' ],
79
79
$ table ['columns ' ]['ticket_foreign_id ' ],
80
80
$ table ['columns ' ]['category_foreign_id ' ],
@@ -89,7 +89,7 @@ public function labels(): BelongsToMany
89
89
$ table = config ('laravel_ticket.table_names.label_ticket ' , 'label_ticket ' );
90
90
91
91
return $ this ->belongsToMany (
92
- Label::class ,
92
+ config ( ' laravel_ticket.models.label ' ) ,
93
93
$ table ['table ' ],
94
94
$ table ['columns ' ]['ticket_foreign_id ' ],
95
95
$ table ['columns ' ]['label_foreign_id ' ],
@@ -104,7 +104,7 @@ public function labels(): BelongsToMany
104
104
public function getTable ()
105
105
{
106
106
return config (
107
- 'laravel_ticket.table_names .tickets ' ,
107
+ 'laravel_ticket.models .tickets ' ,
108
108
parent ::getTable ()
109
109
);
110
110
}
0 commit comments