mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
29 lines
576 B
PHP
29 lines
576 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
|
use Laravel\Jetstream\Jetstream;
|
|
use Laravel\Jetstream\TeamInvitation as JetstreamTeamInvitation;
|
|
|
|
class TeamInvitation extends JetstreamTeamInvitation
|
|
{
|
|
/**
|
|
* The attributes that are mass assignable.
|
|
*
|
|
* @var string[]
|
|
*/
|
|
protected $fillable = [
|
|
'email',
|
|
'role',
|
|
];
|
|
|
|
/**
|
|
* Get the team that the invitation belongs to.
|
|
*/
|
|
public function team(): BelongsTo
|
|
{
|
|
return $this->belongsTo(Jetstream::teamModel());
|
|
}
|
|
}
|