models
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
@@ -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');
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user