24 lines
353 B
PHP
24 lines
353 B
PHP
<?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',
|
|
];
|
|
|
|
/* RELATIONS */
|
|
|
|
public function provider()
|
|
{
|
|
return $this->belongsTo(ProviderOauth::class,'provider_oauth_id');
|
|
}
|
|
} |