Added new models for Lookup Tables

Added new Library class called LookupHelper to assist in easier access to reference tables across all classes.
Added lookup table migrations
Added chartjs package to composer, and laravel service provider
modified routes to make it easier to see what is going on rather than having different names for post things from get pages
This commit is contained in:
2018-12-21 22:42:56 -06:00
parent 685ac73f15
commit f2f3e9779a
27 changed files with 878 additions and 1092 deletions
@@ -0,0 +1,26 @@
<?php
namespace App\Models\Character;
use Illuminate\Database\Eloquent\Model;
class CharacterToCorporation extends Model
{
// Table Name
public $table = 'character_to_corporation';
// Timestamps
public $timestamps = false;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'character_id',
'character_name',
'corporation_id',
'corporation_name',
];
}
@@ -0,0 +1,26 @@
<?php
namespace App\Models\Corporation;
use Illuminate\Database\Eloquent\Model;
class CorporationToAlliance extends Model
{
//Table Name
public $table = 'corporation_to_alliance';
//Timestamps
public $timestamps = false;
/**
* The attributes that are mass assignable
*
* @var array
*/
protected $fillable = [
'corporation_id',
'corporation_name',
'alliance_id',
'alliance_name',
];
}