本文整理匯總了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);
}
示例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);
}
示例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 () {
示例4: index
public function index()
{
$this->layout->content = View::make('inventories.index')->with('inventories', Inventory::all());
}
示例5: index
/**
* Display a listing of inventories
*
* @return Response
*/
public function index()
{
$inventories = Inventory::all();
return View::make('inventories.index', compact('inventories'));
}