diff --git a/src/Models/Ticket.php b/src/Models/Ticket.php index 333373c..a1908d7 100644 --- a/src/Models/Ticket.php +++ b/src/Models/Ticket.php @@ -9,7 +9,6 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\BelongsToMany; use Illuminate\Database\Eloquent\Relations\HasMany; -use Illuminate\Foundation\Auth\User; /** * Coderflex\LaravelTicket\Models\Ticket @@ -45,7 +44,7 @@ class Ticket extends Model */ public function user(): BelongsTo { - return $this->belongsTo(User::class); + return $this->belongsTo(config('auth.providers.users.model')); } /** @@ -55,7 +54,7 @@ public function user(): BelongsTo */ public function assignedToUser(): BelongsTo { - return $this->belongsTo(User::class, 'assigned_to'); + return $this->belongsTo(config('auth.providers.users.model'), 'assigned_to'); } /**