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