mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-20 04:23:16 +00:00
improve navigation
This commit is contained in:
1 parent
3f92c1e37b
commit
433dff2684
5 files changed
+32
-37
No files matched your search
@@ -140,4 +140,16 @@ class Project extends BaseModel
|
||||
{
|
||||
return $this->postgresqls()->get()->merge($this->redis()->get())->merge($this->mongodbs()->get())->merge($this->mysqls()->get())->merge($this->mariadbs()->get())->merge($this->keydbs()->get())->merge($this->dragonflies()->get())->merge($this->clickhouses()->get());
|
||||
}
|
||||
|
||||
public function navigateTo()
|
||||
{
|
||||
if ($this->environments->count() === 1) {
|
||||
return route('project.resource.index', [
|
||||
'project_uuid' => $this->uuid,
|
||||
'environment_uuid' => $this->environments->first()->uuid,
|
||||
]);
|
||||
}
|
||||
|
||||
return route('project.show', ['project_uuid' => $this->uuid]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user