46 lines
1.2 KiB
PHP
46 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\Dashboard;
|
|
|
|
//Internal Library
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\Auth;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Carbon\Carbon;
|
|
|
|
//Application Library
|
|
use App\Library\Esi\Esi;
|
|
use Seat\Eseye\Cache\NullCache;
|
|
use Seat\Eseye\Configuration;
|
|
use Seat\Eseye\Containers\EsiAuthentication;
|
|
use Seat\Eseye\Eseye;
|
|
use Seat\Eseye\Exceptions\RequestFailedException;
|
|
|
|
//Models
|
|
use App\Models\Esi\EsiScope;
|
|
use App\Models\Esi\EsiToken;
|
|
use App\Models\Auth\UserPermission;
|
|
use App\Models\Auth\UserRole;
|
|
use App\Models\Auth\User;
|
|
|
|
class DashboardController extends Controller
|
|
{
|
|
public function __construct() {
|
|
//$this->middleware('auth');
|
|
//$this->middleware('role:User');
|
|
}
|
|
|
|
public function displayDashboard() {
|
|
$esiToken = new EsiToken;
|
|
|
|
$esi = new Eseye();
|
|
$characterInfo = $esi->invoke('get', '/characters/{character_id/', [
|
|
'character_id' => auth()->user()->character_id,
|
|
]);
|
|
dd($characterInfo);
|
|
|
|
return view('dashboard.dashboard')->with(['characterId' => $esiToken->refresh_token]);
|
|
}
|
|
}
|