Added oauth login

This commit is contained in:
Deon George
2019-09-03 14:43:59 +10:00
parent 21ea60c4f9
commit 8224fba840
17 changed files with 426 additions and 21 deletions

25
app/Models/Oauth.php Normal file
View File

@@ -0,0 +1,25 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\User;
use App\Traits\NextKey;
class Oauth extends Model
{
use NextKey;
const RECORD_ID = 'oauth';
public $incrementing = FALSE;
protected $table = 'ab_oauth';
public $timestamps = FALSE;
protected $fillable = ['name','active'];
public function accounts()
{
return $this->hasMany(AccountOauth::class);
}
}