当前位置: 首页>>代码示例>>PHP>>正文


PHP Inventory::all方法代码示例

本文整理汇总了PHP中Inventory::all方法的典型用法代码示例。如果您正苦于以下问题:PHP Inventory::all方法的具体用法?PHP Inventory::all怎么用?PHP Inventory::all使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Inventory的用法示例。


在下文中一共展示了Inventory::all方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: inventoree

 public function inventoree()
 {
     // $inventory = DB::table('tblInventory')
     // ->join('tblProducts', function($join)
     // {
     // 	$join->on('tblInventory.strProdID','=','tblProducts.strProdID');
     // })->get();
     $inventory = Inventory::all();
     return View::make('inventory')->with('inventory', $inventory);
 }
开发者ID:ExperimentalGroup,项目名称:inventoryfinal,代码行数:10,代码来源:HomeController.php

示例2: index

 /**
  * Display a listing of the resource.
  * GET /inventories
  *
  * @return Response
  */
 public function index()
 {
     $items = Inventory::all();
     return View::make('inventories.index')->with('items', $items);
 }
开发者ID:automotivecapstone,项目名称:capstone.dev,代码行数:11,代码来源:InventoriesController.php

示例3: function

<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/', function () {
    $t = 1;
    $inventories = Inventory::all();
    return View::make('main/index')->with('inventories', $inventories)->with('t', $t);
});
Route::get('/albums', function () {
    $albums = Collection::all();
    return View::make('main/albums')->with('albums', $albums);
});
Route::get('/album/{albums}', function ($albums) {
    $albums = Collection::find($albums);
    return View::make('main/album')->with(array('albums' => $albums));
});
Route::get('/albums/{album}/image/{image}', function ($album, $image) {
    $album = Collection::find($album);
    $image = Inventory::find($image);
    return View::make('main/image')->with(array('album' => $album, 'image' => $image));
});
Route::get('/login', function () {
开发者ID:joisak,项目名称:phorrow,代码行数:31,代码来源:routes.php

示例4: index

 public function index()
 {
     $this->layout->content = View::make('inventories.index')->with('inventories', Inventory::all());
 }
开发者ID:joisak,项目名称:phorrow,代码行数:4,代码来源:InventoryController.php

示例5: index

 /**
  * Display a listing of inventories
  *
  * @return Response
  */
 public function index()
 {
     $inventories = Inventory::all();
     return View::make('inventories.index', compact('inventories'));
 }
开发者ID:kicohen,项目名称:TechTracker,代码行数:10,代码来源:InventoriesController.php


注:本文中的Inventory::all方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。