Skip to content

Commit

Permalink
fix: model
Browse files Browse the repository at this point in the history
  • Loading branch information
a1383n committed Mar 22, 2024
1 parent 389b1f5 commit 745b94a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/Model/AuthenticatableProviders.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@

class AuthenticatableProviders extends Model
{
protected $fillable = [
'provider_type',
'provider_id',
'payload'
];

protected $casts = [
'payload' => 'json',
];
Expand Down
2 changes: 1 addition & 1 deletion src/Traits/AuthProAuthenticatable.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ public static function getIdentifierMapper(): array

public function authProviders(): MorphMany
{
return $this->morphMany(AuthenticatableProviders::class, 'authenticatable', 'user_id');
return $this->morphMany(AuthenticatableProviders::class, 'authenticatable');
}
}

0 comments on commit 745b94a

Please sign in to comment.