You've already forked Epicnabbo-Catalogus-Updated-Daily
32 lines
714 B
PHP
32 lines
714 B
PHP
<?php
|
|
|
|
namespace App\Models\Community\Teams;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Relations\HasMany;
|
|
|
|
class WebsiteTeam extends Model
|
|
{
|
|
protected $table = 'website_teams';
|
|
|
|
protected $fillable = [
|
|
'name',
|
|
'description',
|
|
'rank_name',
|
|
'is_active',
|
|
];
|
|
|
|
protected $casts = [
|
|
'is_active' => 'boolean',
|
|
];
|
|
|
|
public function applications(): HasMany
|
|
{
|
|
return $this->hasMany(\App\Models\Community\Staff\WebsiteStaffApplications::class, 'team_id');
|
|
}
|
|
|
|
public function openPositions(): HasMany
|
|
{
|
|
return $this->hasMany(\App\Models\Community\Staff\WebsiteOpenPosition::class, 'team_id');
|
|
}
|
|
} |