本文整理汇总了PHP中app\Category::getCategoriesDropDown方法的典型用法代码示例。如果您正苦于以下问题:PHP Category::getCategoriesDropDown方法的具体用法?PHP Category::getCategoriesDropDown怎么用?PHP Category::getCategoriesDropDown使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\Category
的用法示例。
在下文中一共展示了Category::getCategoriesDropDown方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getEdit
public function getEdit($id)
{
$categories = new Category();
$allCategory = $categories->getCategoriesDropDown();
$branches = new Branch();
$branchAll = $branches->getBranchesDropDown();
$subCategory = SubCategory::find($id);
return view('ProductSubCategory.edit', compact('branchAll'))->with('subCategory', $subCategory)->with('categoryAll', $allCategory);
}
示例2: getStockProducts
public function getStockProducts()
{
$branches = new Branch();
$branchAll = $branches->getBranchesDropDown();
$stockInfos = new StockInfo();
$allStockInfos = $stockInfos->getStockInfoDropDown();
$catogories = new Category();
$categoriesAll = $catogories->getCategoriesDropDown();
$products = new Product();
$productAll = $products->getProductsWithCategories();
return view('Searches.stockProduct', compact('productAll'))->with('categoriesAll', $categoriesAll)->with('allStockInfos', $allStockInfos)->with('branchAll', $branchAll);
}
示例3: postStocksproductsresult
public function postStocksproductsresult()
{
$stockInfos = new StockInfo();
$allStockInfos = $stockInfos->getStockInfoDropDown();
$branches = new Branch();
$branchAll = $branches->getBranchesDropDown();
$catogories = new Category();
$categoriesAll = $catogories->getCategoriesDropDown();
$report = new Report();
$branch_id = Input::get('branch_id');
$stock_info_id = Input::get('stock_info_id');
$category_id = Input::get('category_id');
$product_type = Input::get('product_type');
$results = $report->getStockReportResult($stock_info_id, $product_type, $branch_id, $category_id);
return view('Reports.stockProductsReport')->with('stock_info_id', $stock_info_id)->with('branch_id', $branch_id)->with('category_id', $category_id)->with('product_type', $product_type)->with('results', $results)->with('branchAll', $branchAll)->with('allStockInfos', $allStockInfos)->with('categoriesAll', $categoriesAll);
}