28 lines
503 B
PHP
28 lines
503 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
|
||
|
|
class TribeMember extends Model
|
||
|
|
{
|
||
|
|
public const LEADER = 'leader';
|
||
|
|
|
||
|
|
public const COUNCIL = 'council';
|
||
|
|
|
||
|
|
public const MEMBER = 'member';
|
||
|
|
|
||
|
|
protected $guarded = [];
|
||
|
|
|
||
|
|
public function tribe(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Tribe::class);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function player(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Player::class);
|
||
|
|
}
|
||
|
|
}
|