Laravel Jetstream install

This commit is contained in:
Benjamin Takats
2022-11-29 17:42:58 +01:00
parent 17cfffc817
commit 9e56453d46
127 changed files with 5887 additions and 197 deletions

View File

@@ -0,0 +1,29 @@
<?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());
}
}