Fixed manufacturers item count
This commit is contained in:
parent
3b21a19491
commit
eea65a3f26
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class ManufacturersController extends Controller
|
||||||
public function show($id)
|
public function show($id)
|
||||||
{
|
{
|
||||||
$this->authorize('view', Manufacturer::class);
|
$this->authorize('view', Manufacturer::class);
|
||||||
$manufacturer = Manufacturer::findOrFail($id);
|
$manufacturer = Manufacturer::withCount('assets')->withCount('licenses')->withCount('consumables')->withCount('accessories')->findOrFail($id);
|
||||||
return (new ManufacturersTransformer)->transformManufacturer($manufacturer);
|
return (new ManufacturersTransformer)->transformManufacturer($manufacturer);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue