We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0f671c1 + 791562c commit 6540e2dCopy full SHA for 6540e2d
src/Models/Ticket.php
@@ -9,7 +9,6 @@
9
use Illuminate\Database\Eloquent\Relations\BelongsTo;
10
use Illuminate\Database\Eloquent\Relations\BelongsToMany;
11
use Illuminate\Database\Eloquent\Relations\HasMany;
12
-use Illuminate\Foundation\Auth\User;
13
14
/**
15
* Coderflex\LaravelTicket\Models\Ticket
@@ -45,7 +44,7 @@ class Ticket extends Model
45
44
*/
46
public function user(): BelongsTo
47
{
48
- return $this->belongsTo(User::class);
+ return $this->belongsTo(config('auth.providers.users.model'));
49
}
50
51
@@ -55,7 +54,7 @@ public function user(): BelongsTo
55
54
56
public function assignedToUser(): BelongsTo
57
58
- return $this->belongsTo(User::class, 'assigned_to');
+ return $this->belongsTo(config('auth.providers.users.model'), 'assigned_to');
59
60
61
0 commit comments