當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Update::take方法代碼示例

本文整理匯總了PHP中Update::take方法的典型用法代碼示例。如果您正苦於以下問題:PHP Update::take方法的具體用法?PHP Update::take怎麽用?PHP Update::take使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Update的用法示例。


在下文中一共展示了Update::take方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: array

Route::get('make-payment/{id}', array('uses' => 'OrderController@getPayment'));
Route::get('check_order', array('uses' => 'OrderController@getCheckOrder'));
Route::post('category', array('uses' => 'CategoryController@postCreate'));
Route::post('order', array('uses' => 'OrderController@postPayOrder'));
Route::post('imei', array('uses' => 'OrderController@postImeiOrder'));
Route::get('bitcoin_payment/{id}', array('uses' => 'OrderController@getBitcoinPayment'));
Route::get('transfer-verified/{id}', array('uses' => 'OrderController@getConfirmationVerified'));
/*************************MESSAGE CONTROLLER*********************** */
Route::get('messages', array('uses' => 'MessageController@getIndex'));
/*********************STORE CONTROLLER**********************************/
Route::get('store', array('uses' => 'StoreController@getIndex'));
Route::get('purchase/{id}', array('uses' => 'StoreController@getStore'));
/******************************VIEW SHARE*************************************/
Route::get('reviews', array('uses' => 'CommentController@getComments'));
View::share('catnav', Comment::take(4)->orderBy('created_at', 'DESC')->get());
View::share('upnav', Update::take(2)->orderBy('created_at', 'DESC')->get());
View::share('products', Product::all());
/****************************************************************************/
Route::get('imei-checker', array('uses' => 'ImeiController@getIndex'));
Route::get('products/{id}', array('uses' => 'CategoryController@getproducts'));
Route::get('blog', array('uses' => 'BlogController@getIndex'));
Route::get('reseller', array('uses' => 'ResellerController@getIndex'));
Route::post('contact', array('uses' => 'ContactController@postReport'));
Route::post('btc', array('uses' => 'BtcController@postBtc'));
Route::post('comment', array('uses' => 'CommentController@postComments'));
/************************GEVEY CONTROLLER8*****************************/
Route::post('gevey', array('uses' => 'GeveyController@postGevey'));
Route::get('gevey', array('uses' => 'GeveyController@getGeveySim'));
/********************ADMIN CONTROLLER**********************************/
Route::get('admin/login', array('uses' => 'AdminController@getAdminLogin'));
Route::group(array('before' => 'role'), function () {
開發者ID:bernardowiredu,項目名稱:iunlockgh,代碼行數:31,代碼來源:routes.php


注:本文中的Update::take方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。