本文整理汇总了PHP中route::any方法的典型用法代码示例。如果您正苦于以下问题:PHP route::any方法的具体用法?PHP route::any怎么用?PHP route::any使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类route
的用法示例。
在下文中一共展示了route::any方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: function
Route::any('bookReturn', 'Admin\\BookController@bookReturn');
Route::post('bookReturnAction', 'Admin\\BookController@bookReturnAction');
Route::any('bookLoss', 'Admin\\BookController@bookLoss');
Route::post('bookLossAction', 'Admin\\BookController@bookLossAction');
Route::any('readerSearch', 'Admin\\ReaderController@readerSearch');
Route::any('readerSearchAction', 'Admin\\ReaderController@readerSearchAction');
Route::get('readerDetail', 'Admin\\ReaderController@readerDetail');
Route::post('readerSaveAction', 'Admin\\ReaderController@readerSaveAction');
Route::any('readerLoss', 'Admin\\ReaderController@readerLoss');
Route::post('readerLossAction', 'Admin\\ReaderController@readerLossAction');
Route::any('readerFound', 'Admin\\ReaderController@readerFound');
Route::post('readerFoundAction', 'Admin\\ReaderController@readerFoundAction');
Route::any('overTime', 'Admin\\SystemController@overTime');
Route::any('changePassword', 'Admin\\SystemController@changePassword');
Route::post('changePasswordAction', 'Admin\\SystemController@changePasswordAction');
Route::any('levelManage', 'Admin\\SystemController@levelManage');
Route::any('levelDel', 'Admin\\SystemController@levelDel');
Route::any('levelAdd', 'Admin\\SystemController@levelAdd');
Route::any('levelAddAction', 'Admin\\SystemController@levelAddAction');
});
Route::group(['prefix' => 'reader', 'middleware' => ['UserAuth']], function () {
route::any('home', 'Reader\\IndexController@home');
route::any('search', 'Reader\\IndexController@search');
route::any('advancedSearch', 'Reader\\IndexController@advancedSearch');
route::any('advancedSearchAction', 'Reader\\IndexController@advancedSearchAction');
route::any('history', 'Reader\\IndexController@history');
route::any('info', 'Reader\\IndexController@info');
route::any('infoSave', 'Reader\\IndexController@infoSave');
route::any('changePassword', 'Reader\\IndexController@changePassword');
route::any('changePasswordAction', 'Reader\\IndexController@changePasswordAction');
});
示例2:
Route::match(['get', 'post'], 'instantsearch', 'BillsController@searchinst');
Route::any('bills/exportExcel/{ids?}', 'BillsController@exportExcel');
Route::any('bills/exportPdf/{ids?}', 'BillsController@exportPdf');
// showef famille bills (account Family)
Route::get('bills/showef/{id}', 'BillsController@showef');
Route::get('bills/indexef', 'BillsController@indexef');
Route::get('schools/editef/{id}', 'SchoolsController@editef');
Route::post('schools/updatepassef', 'SchoolsController@updatepassef');
Route::post('schools/deleteSchools', 'SchoolsController@deleteSchools');
// delete schools
Route::post('schools/bloquer', 'SchoolsController@bloquer');
Route::post('schools/debloquer', 'SchoolsController@debloquer');
Route::post('schools/offess', 'SchoolsController@offess');
// status trier officiel or essai
Route::get('schools/delete/{id}', 'SchoolsController@delete');
route::any('schools/promotion/{id?}', 'SchoolsController@promotion');
Route::post('bills/checkpassofregler', 'BillsController@checkpassofregler');
// vérifie le mot de pass avant de régler
Route::get('bills/indexnr', 'BillsController@indexnr');
// index factures non réglées
Route::post('bills/filterByYear', 'BillsController@filterByYear');
// filter by year
Route::post('bills/filterByYearef', 'BillsController@filterByYearef');
// filter by year compte famille
Route::post('bills/filterByMonthef', 'BillsController@filterByMonthef');
// filter by month compte famille
Route::post('bills/statusindexef', 'BillsController@statusindexef');
// filter status compte famille
// archive and delete bills
Route::get('bills/archive/{id}', 'BillsController@archive');
Route::get('bills/delete/{id}', 'BillsController@delete');
示例3: function
/*
* Looking for a way to implement universal rules for your site? You can place
* routes in this file that will run across the entire application. Add your
* alternative routes (see: sample.php) before and after io::ornithopter(); as
* needed for your project. You can use this for custom routing, loading default
* models or classes, templating engines, session management and so much more!
*/
// Pre application code
route::any('/.*', function () {
// Your code here
io::library('page')->theme('_layout')->optimize();
});
// Standard routing
io::ornithopter();
// Post application code
route::any('/.*', function () {
// Your code here
});
/*
* Other routing types are possible based on any REQUEST_METHOD, url pattern,
* or even exact route matching. You can add as many unique routes to this file
* as you want. Just remember io::ornithopter() is the main framework routing.
*
* @method route::get('/*', function(){ //code });
* @method route::post('/*', function(){ //code });
* @method route::any('/*', function(){ //code });
* @method route::put('/*', function(){ //code });
* @method route::delete('/*', function(){ //code });
* @method route::update('/*', function(){ //code });
* @method route::custom('/*', function(){ //code });
*/
示例4: function
* Sample: Routes true for any POST request
*
* @return void
*/
route::post('.*', function () {
// Say hello
echo '<h2>2: All matching <stron>POST</stron> Requests</h2>';
});
/*
* Sample: Routes true for any ANY request
*
* @return void
*/
route::any('.*', function () {
// Say hello
echo '<h2>3: Any matching HTTP Requests</h2>';
// Uh... Say something
echo '<p>Not much to say... But hopefully this helps you understand alternative routes!</p>';
// Print a Go Home link
echo '<a href="./">Go back to Ornithopter.io homepage</a>';
// Notice the "Stop Routing" true boolean here; Try changing to "false"
}, true);
/*
* Sample: This function will not execute if the above functions routes
*
* @return void
*/
route::any('.*', function () {
// Say hello
echo '<h3>4: This will not show, because the previous route was TRUE</h3>';
});