updated manufacturer.index

This commit is contained in:
2025-03-10 23:06:06 +01:00
parent 91629594cf
commit be19ec16d3
3 changed files with 27 additions and 14 deletions
@@ -15,8 +15,7 @@ class ManufacturerController extends Controller
{
// show all manufacturers
$manufacturers = Manufacturer::all()->sortBy('name');
$filamentcount = Filament::all()->count();
return view('manufacturers.index', compact('manufacturers', 'filamentcount'));
return view('manufacturers.index', compact('manufacturers'));
}
public static function refresh()
+2 -1
View File
@@ -13,7 +13,8 @@ class Manufacturer extends Model
'name',
'description',
'website',
'logo'
'logo',
'filament_count'
];
// Manufacturer has many filaments