File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 99use Illuminate \Database \Eloquent \Relations \BelongsTo ;
1010use Illuminate \Database \Eloquent \Relations \BelongsToMany ;
1111use Illuminate \Database \Eloquent \Relations \HasMany ;
12- use Illuminate \Foundation \Auth \User ;
1312
1413/**
1514 * Coderflex\LaravelTicket\Models\Ticket
@@ -45,7 +44,7 @@ class Ticket extends Model
4544 */
4645 public function user (): BelongsTo
4746 {
48- return $ this ->belongsTo (User::class );
47+ return $ this ->belongsTo (config ( ' auth.providers.users.model ' ) );
4948 }
5049
5150 /**
@@ -55,7 +54,7 @@ public function user(): BelongsTo
5554 */
5655 public function assignedToUser (): BelongsTo
5756 {
58- return $ this ->belongsTo (User::class , 'assigned_to ' );
57+ return $ this ->belongsTo (config ( ' auth.providers.users.model ' ) , 'assigned_to ' );
5958 }
6059
6160 /**
You can’t perform that action at this time.
0 commit comments