本文整理汇总了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'));
}