TeamInvitation.php 580 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace App\Models;
  3. use Laravel\Jetstream\Jetstream;
  4. use Laravel\Jetstream\TeamInvitation as JetstreamTeamInvitation;
  5. class TeamInvitation extends JetstreamTeamInvitation
  6. {
  7. /**
  8. * The attributes that are mass assignable.
  9. *
  10. * @var array
  11. */
  12. protected $fillable = [
  13. 'email',
  14. 'role',
  15. ];
  16. /**
  17. * Get the team that the invitation belongs to.
  18. *
  19. * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
  20. */
  21. public function team()
  22. {
  23. return $this->belongsTo(Jetstream::teamModel());
  24. }
  25. }