Skip to content

Instantly share code, notes, and snippets.

@ddavaham
Created October 3, 2018 03:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ddavaham/1f9e9baa5f67ee2aaf8238ee708a1982 to your computer and use it in GitHub Desktop.
Save ddavaham/1f9e9baa5f67ee2aaf8238ee708a1982 to your computer and use it in GitHub Desktop.
<?php
namespace SUN\Models\ESI;
use Illuminate\Database\Eloquent\Model;
use SUN\Models\{AccessList,CorporationWallet,Member,MailRecipient};
class Corporation extends Model
{
protected $primaryKey = 'id';
protected $table = 'corporations';
public $incrementing = false;
protected static $unguarded = true;
public function members ()
{
return $this->hasMany(Character::class, 'corporation_id');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment