testing
This commit is contained in:
@@ -12,7 +12,7 @@ use Laravel\Socialite\Facades\Socialite;
|
||||
use Throwable;
|
||||
|
||||
//Models
|
||||
use App\Models\User\User;
|
||||
use App\Models\Auth\User;
|
||||
use App\Models\Esi\EsiScope;
|
||||
|
||||
class EveLoginController extends Controller
|
||||
|
||||
31
app/Models/Esi/EsiScope.php
Normal file
31
app/Models/Esi/EsiScope.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Esi;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EsiScope extends Model
|
||||
{
|
||||
// Table Name
|
||||
protected $table = 'EsiScopes';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
// Timestamps
|
||||
public $timestamps = true;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'character_id',
|
||||
'scope',
|
||||
];
|
||||
|
||||
public function user() {
|
||||
return $this->belongsTo(App\Models\User\User::class, 'character_id', 'character_id');
|
||||
}
|
||||
}
|
||||
38
app/Models/Esi/EsiToken.php
Normal file
38
app/Models/Esi/EsiToken.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models\Esi;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class EsiToken extends Model
|
||||
{
|
||||
// Table Name
|
||||
protected $table = 'EsiTokens';
|
||||
|
||||
//Primary Key
|
||||
public $primaryKey = 'id';
|
||||
|
||||
// Timestamps
|
||||
public $timestamps = true;
|
||||
|
||||
/**
|
||||
* The attributes that are mass assignable
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable = [
|
||||
'character_id',
|
||||
'access_token',
|
||||
'refresh_token',
|
||||
'inserted_at',
|
||||
'expires_in',
|
||||
];
|
||||
|
||||
public function user() {
|
||||
return $this->belongsTo(App\Models\User\User::class, 'character_id', 'character_id');
|
||||
}
|
||||
|
||||
public function esiscopes() {
|
||||
return $this->hasMany(App\Models\EsiScope::class, 'character_id', 'character_id');
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
use App\Http\Controllers\Auth\LoginController;
|
||||
use App\Http\Controllers\Auth\EveLoginController;
|
||||
use App\Http\Controllers\Dashboard\DashboardController;
|
||||
|
||||
Route::get('/', function () {
|
||||
|
||||
Reference in New Issue
Block a user