From 8de5bfdfad50998e3f7b23d167ef9c30a5f075c8 Mon Sep 17 00:00:00 2001 From: drkthunder02 Date: Mon, 5 Nov 2018 20:01:00 -0600 Subject: [PATCH] models --- ...18_11_05_160450_create_user_esi_scopes.php | 35 ------------------- .../2018_11_06_013105_create_esi_scopes.php | 4 +-- routes/web.php | 4 +-- 3 files changed, 3 insertions(+), 40 deletions(-) delete mode 100644 database/migrations/2018_11_05_160450_create_user_esi_scopes.php diff --git a/database/migrations/2018_11_05_160450_create_user_esi_scopes.php b/database/migrations/2018_11_05_160450_create_user_esi_scopes.php deleted file mode 100644 index 147805526..000000000 --- a/database/migrations/2018_11_05_160450_create_user_esi_scopes.php +++ /dev/null @@ -1,35 +0,0 @@ -integer('id')->increments(); - $table->integer('character_id'); - $table->string('scope'); - $table->timestamps(); - }); - } - } - - /** - * Reverse the migrations. - * - * @return void - */ - public function down() - { - Schema::dropIfExists('UserEsiScopes'); - } -} diff --git a/database/migrations/2018_11_06_013105_create_esi_scopes.php b/database/migrations/2018_11_06_013105_create_esi_scopes.php index 6095f385d..9204aa527 100644 --- a/database/migrations/2018_11_06_013105_create_esi_scopes.php +++ b/database/migrations/2018_11_06_013105_create_esi_scopes.php @@ -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'); } /** diff --git a/routes/web.php b/routes/web.php index f473f959e..7458808d7 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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');