本文整理汇总了PHP中Property::lists方法的典型用法代码示例。如果您正苦于以下问题:PHP Property::lists方法的具体用法?PHP Property::lists怎么用?PHP Property::lists使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Property
的用法示例。
在下文中一共展示了Property::lists方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getCreate
/**
* Show the form for creating a new room
*
* @return Response
*/
public function getCreate()
{
$rooms = Room::where('property_id', Property::getLoggedId())->where('type', '<>', 'plan')->lists('name', 'id');
$properties = Property::lists('name', 'id');
$formulaTypes = Room::$formulaTypes;
return View::make('rooms.create', compact('properties', 'rooms', 'formulaTypes'));
}
示例2: getCreate
/**
* Show the form for creating a new propertieschannel
*
* @return Response
*/
public function getCreate()
{
$properties = Property::lists('name', 'id');
$channels = Channel::lists('name', 'id');
return View::make('properties_channels.create', compact('channels', 'properties'));
}
示例3: array
Route::get('show/receipts', array('as' => 'show/receipts', 'uses' => 'HousController@showReceipts'));
//receipts
Route::get('show/receipts/index', array('as' => 'show/receipts/index', 'uses' => 'HousController@showReceipts'));
//View specific receipt
Route::get('show/receipts/{id}', array('as' => 'show/receipts', 'uses' => 'BillController@showReceipt'));
//billigs
Route::get('api/statistics', array('as' => 'api/statistics', 'uses' => 'HousController@statistics'));
Route::get('payments-bytenant', array('as' => 'payments-bytenant', 'uses' => 'BillController@selectToBill'));
Route::get('redirect/back', array('as' => 'redirect/back'), function () {
return Redirect::back();
});
Route::get('payments-totenant', array('as' => 'payments-totenant', 'uses' => 'BillController@selectToPay'));
Route::get('api/preports', array('as' => 'api/preports', 'uses' => 'PaymentController@Reports'));
Route::post('api/spreport', array('as' => 'api/spreport', 'uses' => 'PaymentController@getFilteredReport'));
Route::get('api/dropdown', array('as' => 'api/dropdown', function () {
$properties = Property::lists('name');
return $properties;
}));
Route::get('ninvoice', array('as' => 'ninvoice', function () {
$invoices = Invoice::where('agent_id', '=', Sentry::getUser()->id)->where('balance', '>', 0)->with('invoicedetail')->orderBy('id', 'desc')->get();
return $invoices;
}));
Route::get('nreceipts', array('as' => 'nreceipts', function () {
$invoices = Receipt::where('agent_id', '=', Sentry::getUser()->id)->where('amountpaid', '>', 0)->orderBy('id', 'desc')->get();
return $invoices;
}));
Route::get('nrefunds', array('as' => 'nrefunds', function () {
$invoices = Invoice::where('agent_id', '=', Sentry::getUser()->id)->where('type', '=', 'refund')->with('invoicedetail')->orderBy('id', 'desc')->get();
return $invoices;
}));
Route::get('api/property/{id}', array('as' => 'api/property', 'uses' => 'HousController@getHouses'));