lasthourcloud/app/Models/Team.php
Andras Bacsai 19ec042a0a wip
2023-03-30 19:50:27 +02:00

23 lines
471 B
PHP

<?php
namespace App\Models;
class Team extends BaseModel
{
protected $casts = [
'personal_team' => 'boolean',
];
protected $fillable = [
'name',
];
public function projects() {
return $this->hasMany(Project::class);
}
public function servers() {
return $this->hasMany(Server::class);
}
public function applications() {
return $this->hasManyThrough(Application::class, Project::class);
}
}