mirror of
https://github.com/cp6/my-idlers.git
synced 2024-11-16 15:33:44 +01:00
Added labels to dns show controller
Added labels to dns show controller
This commit is contained in:
parent
de34f87bb2
commit
d4f2b57b02
@ -66,7 +66,13 @@ class DNSController extends Controller
|
|||||||
public function show(DNS $dn)
|
public function show(DNS $dn)
|
||||||
{
|
{
|
||||||
$dns = DNS::findOrFail($dn->id);
|
$dns = DNS::findOrFail($dn->id);
|
||||||
return view('dns.show', compact(['dn', 'dns']));
|
|
||||||
|
$labels = DB::table('labels_assigned as l')
|
||||||
|
->join('labels', 'l.label_id', '=', 'labels.id')
|
||||||
|
->where('l.service_id', '=', $dn->id)
|
||||||
|
->get(['labels.label']);
|
||||||
|
|
||||||
|
return view('dns.show', compact(['dn', 'dns', 'labels']));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function edit(DNS $dn)
|
public function edit(DNS $dn)
|
||||||
|
Loading…
Reference in New Issue
Block a user