Skip to content

Instantly share code, notes, and snippets.

@ddavaham
Created October 3, 2018 03:53
Show Gist options
  • Save ddavaham/4cdf7b80698bf056fc27d486779d504b to your computer and use it in GitHub Desktop.
Save ddavaham/4cdf7b80698bf056fc27d486779d504b to your computer and use it in GitHub Desktop.
<?php
namespace SUN\Models\ESI;
use Illuminate\Database\Eloquent\Model;
use SUN\Models\{Member, AccessList};
use SUN\Models\SDE\{Ancestry, Bloodline, Race};
class Character extends Model
{
protected $primaryKey = 'id';
protected $table = "characters";
public $incrementing = false;
protected static $unguarded = true;
protected $dates = [
'birthday', 'cached_until'
];
public function member()
{
return $this->belongsTo(Member::class, 'id', 'id');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment