Skip to content

Commit 6bec506

Browse files
fix config user model
1 parent 2be34b5 commit 6bec506

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/Auditable.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected static function bootAuditable()
6060
*/
6161
public function createdBy()
6262
{
63-
$model = config('auth.providers.users.model', config('auth.providers.users.model', User::class));
63+
$model = config('auth.providers.users.model', User::class);
6464
return $this->belongsTo($model, 'created_by');
6565
}
6666

@@ -69,7 +69,7 @@ public function createdBy()
6969
*/
7070
public function updatedBy()
7171
{
72-
$model = config('auth.providers.users.model', config('auth.providers.users.model', User::class));
72+
$model = config('auth.providers.users.model', User::class);
7373
return $this->belongsTo($model, 'updated_by');
7474
}
7575

@@ -78,7 +78,7 @@ public function updatedBy()
7878
*/
7979
public function deletedBy()
8080
{
81-
$model = config('auth.providers.users.model', config('auth.providers.users.model', User::class));
81+
$model = config('auth.providers.users.model', User::class);
8282
return $this->belongsTo($model, 'deleted_by');
8383
}
8484
}

0 commit comments

Comments
 (0)