Created
October 3, 2018 03:53
-
-
Save ddavaham/4cdf7b80698bf056fc27d486779d504b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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