2022-08-12 04:53:06 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Models;
|
|
|
|
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
|
|
|
|
use App\Traits\SiteID;
|
|
|
|
|
|
|
|
class ProviderToken extends Model
|
|
|
|
{
|
|
|
|
use SiteID;
|
|
|
|
|
|
|
|
protected $dates = [
|
|
|
|
'access_token_expires_at',
|
|
|
|
'refresh_token_expires_at',
|
|
|
|
];
|
2022-08-13 01:48:16 +00:00
|
|
|
|
|
|
|
/* RELATIONS */
|
|
|
|
|
|
|
|
public function provider()
|
|
|
|
{
|
|
|
|
return $this->belongsTo(ProviderOauth::class,'provider_oauth_id');
|
|
|
|
}
|
2022-08-12 04:53:06 +00:00
|
|
|
}
|