This commit is contained in:
2018-11-05 20:01:00 -06:00
parent 4bc402f847
commit 8de5bfdfad
3 changed files with 3 additions and 40 deletions

View File

@@ -1,35 +0,0 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateUserEsiScopes extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
if(!Schema::hasTable('UserEsiScopes')) {
Schema::create('UserEsiScopes', function(Blueprint $table) {
$table->integer('id')->increments();
$table->integer('character_id');
$table->string('scope');
$table->timestamps();
});
}
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('UserEsiScopes');
}
}

View File

@@ -15,14 +15,12 @@ class CreateEsiScopes extends Migration
{
if(!Schema::hasTable('EsiScopes')) {
Schema::create('EsiScopes', function(Blueprint $table) {
$table->integer('id')->increments();
$table->increments('id');
$table->integer('character_id');
$table->string('scope');
$table->timestamps();
});
}
Schema::dropIfExists('UserEsiScopes');
}
/**

View File

@@ -17,8 +17,8 @@ Route::get('/', function () {
//Login display pages
Route::get('/login', 'Auth\LoginController@redirectToProvider')->name('login');
Route::get('/callback', 'Auth\LoginController@handleProviderCallback');
Route::get('/logout', 'Auth\LoginController@logout');
Route::get('/callback', 'Auth\LoginController@handleProviderCallback')->name('callback');
Route::get('/logout', 'Auth\LoginController@logout')->name('logout');
//Dashboard Controller Display pages
Route::get('/dashboard', 'DashboardController@index');