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:
@@ -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',
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user