Team.php
TLDR
This file is a model class responsible for handling teams in the application.
Classes
Team
The Team
class is a model that extends the Model
class. It implements the HasCurrentTenantLabel
contract. It also uses the HasFactory
trait. The Team
model represents a team in the application.
Methods
getCurrentTenantLabel
The getCurrentTenantLabel
method returns the label for the current team. In this case, it always returns the string value 'Current team'.
<?php
namespace App\Models;
use Filament\Models\Contracts\HasCurrentTenantLabel;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class Team extends Model implements HasCurrentTenantLabel
{
use HasFactory;
public function getCurrentTenantLabel(): string
{
return 'Current team';
}
}