More model updates to more places than I anticipated.

This probably broke a lot of things.
This commit is contained in:
Dane Everitt
2017-02-09 17:43:54 -05:00
parent 0d61417814
commit 4f61637284
21 changed files with 339 additions and 433 deletions

View File

@@ -276,4 +276,14 @@ class Server extends Model
{
return $this->hasMany(Task::class, 'server', 'id');
}
/**
* Gets all databases associated with a server.
*
* @return \Illuminate\Database\Eloquent\Relations\HasMany
*/
public function databases()
{
return $this->hasMany(Database::class);
}
}