Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

CompanyInvitation.php 577B

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