OAuthProvider laravel 11 changes (#478)

This commit is contained in:
Chirag Chhatrala 2024-07-04 23:54:46 +05:30 committed by GitHub
parent 90ff91b1e9
commit 07a3a91645
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 4 deletions

View File

@ -33,10 +33,13 @@ class OAuthProvider extends Model
'access_token', 'refresh_token', 'access_token', 'refresh_token',
]; ];
protected $casts = [ protected function casts()
{
return [
'provider' => OAuthProviderService::class, 'provider' => OAuthProviderService::class,
'token_expires_at' => 'datetime', 'token_expires_at' => 'datetime',
]; ];
}
/** /**
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo * @return \Illuminate\Database\Eloquent\Relations\BelongsTo