22 lines
390 B
PHP
22 lines
390 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||
|
|
|
||
|
|
class TribeInvite extends Model
|
||
|
|
{
|
||
|
|
protected $guarded = [];
|
||
|
|
|
||
|
|
public function tribe(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Tribe::class);
|
||
|
|
}
|
||
|
|
|
||
|
|
public function player(): BelongsTo
|
||
|
|
{
|
||
|
|
return $this->belongsTo(Player::class);
|
||
|
|
}
|
||
|
|
}
|