lasthourcloud/app/Models/Team.php
Andras Bacsai 2487dde69e add new server
add new private key
check server connection
2023-04-26 15:38:50 +02:00

28 lines
521 B
PHP

<?php
namespace App\Models;
class Team extends BaseModel
{
protected $casts = [
'personal_team' => 'boolean',
];
protected $fillable = [
'id',
'name',
'personal_team'
];
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);
}
}