Files
einundzwanzig-portal/app/Models/TeamInvitation.php
Benjamin Takats 2149b85da0 zoom in country
2022-12-17 19:49:10 +01:00

28 lines
569 B
PHP

<?php
namespace App\Models;
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.
* @return \Illuminate\Database\Eloquent\Relations\BelongsTo
*/
public function team()
{
return $this->belongsTo(Jetstream::teamModel());
}
}