/** * Display the specified resource. * * @param int $id * @return \Illuminate\Http\Response */ public function show($id) { return ProductCategory::with('translations', 'attachments')->findOrFail($id)->toArray(); }