Return packs associated with a service when viewing it on the API.

This commit is contained in:
Dane Everitt 2017-02-02 16:01:18 -05:00
parent 6220f710df
commit 32c21baab0
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
2 changed files with 11 additions and 0 deletions

View file

@ -55,6 +55,7 @@ class ServiceController extends BaseController
'options' => Models\ServiceOptions::select('id', 'name', 'description', 'tag', 'docker_image')
->where('parent_service', $service->id)
->with('variables')
->with('packs')
->get(),
];
}