本文整理匯總了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 () {