mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +08:00
finish oauth provider + docker service wait for MySQL
This commit is contained in:
22
app/Models/SocialAccount.php
Normal file
22
app/Models/SocialAccount.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Laravel\Passport\Client;
|
||||
use Ramsey\Uuid;
|
||||
use function Ramsey\Uuid;
|
||||
|
||||
class SocialAccount extends NexusModel
|
||||
{
|
||||
protected $fillable = [
|
||||
'user_id', 'provider_id', 'provider_user_id', 'provider_username', 'provider_email',
|
||||
];
|
||||
|
||||
public $timestamps = true;
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_id');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user