コード例 #1
0
 public function adminDashboard()
 {
     $page = 'partials.admin-dashboard';
     $users = User::all();
     $user_count = User::count();
     $product_count = Product::count();
     $brand_count = Brand::count();
     $type_count = Type::count();
     return view('quantri/admin', compact('page', 'users', 'user_count', 'product_count', 'brand_count', 'type_count'));
 }