当前位置: 首页>>代码示例>>PHP>>正文


PHP route::post方法代码示例

本文整理汇总了PHP中route::post方法的典型用法代码示例。如果您正苦于以下问题:PHP route::post方法的具体用法?PHP route::post怎么用?PHP route::post使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在route的用法示例。


在下文中一共展示了route::post方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

route::get('users/{id}', 'UsersController@show');
route::get('users', 'UsersController@index');
route::get('add_user', 'UsersController@getAdd_User');
// Edit account routes
route::post('edit_pass', 'EditUsersController@postEdit_pass');
route::post('edit_img', 'EditUsersController@postEdit_img');
route::post('edit_username', 'EditUsersController@postEdit_username');
route::post('edit_email', 'EditUsersController@postEdit_email');
route::post('delete_account', 'EditUsersController@postDelete_account');
// Edit user account routes
route::post('admin_edit_pass', 'UsersController@postAdmin_Edit_pass');
route::post('admin_edit_username', 'UsersController@postAdmin_Edit_username');
route::post('admin_edit_email', 'UsersController@postAdmin_Edit_email');
route::post('admin_delete_user', 'UsersController@postAdmin_Delete_user');
route::post('admin_add_user', 'UsersController@postAdmin_Add_user');
route::post('admin_user', 'UsersController@postAdmin_user');
route::post('user_admin', 'UsersController@postUser_admin');
//Edit static pages routes
Route::get('about', 'PagesController@getAbout');
Route::get('help', 'PagesController@getHelp');
Route::get('terms&conditions', 'PagesController@getTerms');
Route::post('about', 'PagesController@postAbout');
Route::get('contact', 'PagesController@getContact');
//Search routes
route::post('searchTags', 'TagsController@postSearch');
Route::post('search', 'CoursesController@postSearch');
Route::post('search_users', 'PagesController@postSearchUser');
Route::post('search_lectures', 'PagesController@postSearchLecture');
//library routes
Route::get('library', 'PagesController@library');
Route::get('library/{id}', 'PagesController@show');
开发者ID:veljkodjokic,项目名称:Learn_ON,代码行数:31,代码来源:routes.php

示例2: array

<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the Closure to execute when that URI is requested.
|
*/
Route::get('/', 'HomeController@index');
Route::post('/signup', array('before' => 'csrf', 'uses' => 'UsersController@store'));
Route::post('/login', array('before' => 'csrf', 'uses' => 'UsersController@login'));
Route::get('/users/logout', array('uses' => 'UsersController@logout'));
Route::get('/profile', array('before' => 'auth', 'uses' => 'ProfileController@index'));
Route::post('/update', array('before' => 'auth', 'uses' => 'UsersController@update_profile'));
route::post('/password', array('before' => 'csrf|auth', 'uses' => 'UsersController@change_password'));
Route::post('/search', array('before' => 'csrf', 'uses' => 'UsersController@search'));
Route::get('/search', function () {
    return Redirect::to('/');
});
开发者ID:arunkullu64,项目名称:uksalon,代码行数:23,代码来源:routes.php

示例3: function

<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', function () {
    return view('welcome');
});
route::get('client', 'ClientController@index');
route::post('client', 'ClientController@store');
route::get('client/{id}', 'ClientController@show');
route::delete('client/{id}', 'ClientController@destroy');
route::put('client/{id}', 'ClientController@update');
route::get('projects/{id}/notes', 'ProjectNotesController@index');
route::post('projects/{id}/notes', 'ProjectNotesController@store');
route::get('projects/{id}/notes/{noteId}', 'ProjectNotesController@show');
route::put('projects/{id}/notes/{noteId}', 'ProjectNotesController@update');
route::delete('projects/{id}/notes/{noteId}', 'ProjectNotesController@destroy');
route::get('projects', 'ProjectsController@index');
route::post('projects', 'ProjectsController@store');
route::get('projects/{id}', 'ProjectsController@show');
route::delete('projects/{id}', 'ProjectsController@destroy');
route::put('projects/{id}', 'ProjectsController@update');
开发者ID:josealvjunior,项目名称:ProjetoFase2,代码行数:30,代码来源:routes.php

示例4: function

     Route::get('administrador/crear-evento', ['as' => 'crearEvento', 'uses' => 'EventosController@createevento']);
     Route::post('administrador/crear-evento', ['as' => 'register', 'uses' => 'EventosController@register']);
     Route::get('administrador/ver-eventos', ['as' => 'verEvento', 'uses' => 'EventosController@verEventos']);
     Route::get('administrador/crear-sector', ['as' => 'crearSector', 'uses' => 'SectoresController@crearsector']);
     Route::post('administrador/crear-sector', ['as' => 'registersector', 'uses' => 'SectoresController@register']);
     Route::get('administrador/ver-ventasonline', ['as' => 'verVentasOnline', 'uses' => 'VentasController@verVentasOnline']);
     Route::post('administrador/ver-ventasonline', ['as' => 'busquedaUsuario', 'uses' => 'VentasController@busquedaUsuario']);
     //Route::post('administrador/executeSearch', ['as' => 'search', 'uses' => 'EventosController@executeSearch']);
     Route::get('administrador/ver-ventassectores', ['as' => 'verVentasSectores', 'uses' => 'VentasController@verVentasSectores']);
     Route::get('administrador/ver-ventas/{id}', ['as' => 'verVentasDetalle', 'uses' => 'VentasController@verVentasDetalle']);
     //REPORTES ENTREGAS
     Route::get('administrador/ver-entregassectores', ['as' => 'verEntregasSectores', 'uses' => 'EntregasController@verEntregasSectores']);
     Route::get('administrador/ver-entregasubicaciones', ['as' => 'verEntregasPorUbicacion', 'uses' => 'EntregasController@verEntregasPorUbicacion']);
     //REPORTES ENTREGAS -> por fecha
     route::get('administrador/entregasFecha', ['as' => 'showEntregasFechaSector', 'uses' => 'AdministradorController@showEntregasFechaSector']);
     route::post('administrador/entregasFecha', ['as' => 'buscarEntregasFechaSector', 'uses' => 'AdministradorController@buscarEntregasFechaSector']);
     //REPORTES VENTAS FISICAS
     Route::get('administrador/ver-ventasfisicas', ['as' => 'verVentasFisicas', 'uses' => 'VentasController@verVentasFisicas']);
     Route::get('administrador/ver-ventasfisicassectores', ['as' => 'verVentasFisicasSectores', 'uses' => 'VentasController@verVentasFisicasSectores']);
     Route::get('administrador/ver-ventasfisicas/{id}', ['as' => 'verVentasFisicasSectorDetalle', 'uses' => 'VentasController@verVentasFisicasSectorDetalle']);
     Route::get('administrador/ver-ventasfisicasubicaciones', ['as' => 'verVentasFisicasUbicaciones', 'uses' => 'VentasController@verVentasFisicasUbicaciones']);
     Route::get('administrador/ver-ventas/fisicas/{id}', ['as' => 'verVentasFisicasUbicacionDetalle', 'uses' => 'VentasController@verVentasFisicasUbicacionDetalle']);
 });
 //SOLO LOS DE TIPO VENDEDOR
 Route::group(['before' => 'is_vendedor'], function () {
     //VIEW layout ENTREGA ENTRADA (VENTAS ONLINE)
     Route::get('administrador/preventascanje', ['as' => 'canjeEntradas', 'uses' => 'AdministradorController@canjeEntradas']);
     //VERIFICAR CODIGO->ENTREGA DE ENTRADAS (VENTAS ONLINE)
     Route::post('administrador/preventascanje', ['as' => 'canjeVerificar', 'uses' => 'AdministradorController@canjeVerificar']);
     //ENTREGAR ENTRADA FISICA (VENTAS ONLINE)
     Route::post('administrador/preventaentregar', ['as' => 'canjear', 'uses' => 'AdministradorController@canjear']);
开发者ID:claud145,项目名称:ticketeg-web,代码行数:31,代码来源:routes.php

示例5: view

| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
/* Route::get('/', function () {
    return view('welcome');
}); */
use Illuminate\Support\Facades\Validator;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Auth;
Route::get('/', 'MainController@home');
Route::get('home', ['as' => 'homePath', 'uses' => 'MainController@home']);
Route::get('about', ['as' => 'aboutPath', 'uses' => 'MainController@about']);
Route::get('contacts', ['as' => 'contactsPath', 'uses' => 'MainController@contacts']);
Route::get('login', ['as' => 'loginPath', 'uses' => 'MainController@login']);
Route::get('signup', ['as' => 'signupPath', 'uses' => 'MainController@signup']);
Route::post('signup', ['as' => 'signup', 'uses' => 'UserController@signup']);
Route::post('login', ['as' => 'login', 'uses' => 'UserController@login']);
Route::get('logout', ['as' => 'logoutPath', 'uses' => 'UserController@logout']);
route::get('create', ['as' => 'profilePath', 'middleware' => 'auth', 'uses' => 'UserController@profile']);
route::post('create', ['as' => 'createPost', 'uses' => 'usercontroller@post']);
route::get('all-posts', ['as' => 'allPostsPath', 'middleware' => 'auth', 'uses' => 'UserController@all_posts']);
route::get('find-friends', ['as' => 'findFriendsPath', 'middleware' => 'auth', 'uses' => 'UserController@findFriend']);
route::get('auth/login', ['as' => 'guest', 'uses' => 'UserController@guest']);
route::get('/{id}', ['as' => 'myProfilePath', 'middleware' => 'auth', 'uses' => 'UserController@show']);
route::get('/user/{id}', ['as' => 'userProfilePath', 'middleware' => 'auth', 'uses' => 'UserController@showUser']);
开发者ID:anniealan,项目名称:laravel5-learning,代码行数:31,代码来源:routes.php

示例6: function

<?php

Route::resource('domains', 'DomainsController');
Route::model('domains', 'AbuseIO\\Models\\Domain');
Route::group(['prefix' => 'domains', 'as' => 'domains.'], function () {
    // Search domains
    Route::get('search/{one?}/{two?}', ['middleware' => 'permission:domains_view', 'as' => 'search', 'uses' => 'DomainsController@search']);
    // Access to index list
    route::get('', ['middleware' => 'permission:domains_view', 'as' => 'index', 'uses' => 'DomainsController@index']);
    // Access to show object
    route::get('{domains}', ['middleware' => 'permission:domains_view', 'as' => 'show', 'uses' => 'DomainsController@show']);
    // Access to export object
    route::get('export/{format}', ['middleware' => 'permission:domains_export', 'as' => 'export', 'uses' => 'DomainsController@export']);
    // Access to create object
    route::get('create', ['middleware' => 'permission:domains_create', 'as' => 'create', 'uses' => 'DomainsController@create']);
    route::post('', ['middleware' => 'permission:domains_create', 'as' => 'store', 'uses' => 'DomainsController@store']);
    // Access to edit object
    route::get('{domains}/edit', ['middleware' => 'permission:domains_edit', 'as' => 'edit', 'uses' => 'DomainsController@edit']);
    route::patch('{domains}', ['middleware' => 'permission:domains_edit', 'as' => 'update', 'uses' => 'DomainsController@update']);
    route::put('{domains}', ['middleware' => 'permission:domains_edit', 'as' => 'update', 'uses' => 'DomainsController@update']);
    // Access to delete object
    route::delete('/{domains}', ['middleware' => 'permission:domains_delete', 'as' => 'destroy', 'uses' => 'DomainsController@destroy']);
});
开发者ID:ihatehandles,项目名称:AbuseIO,代码行数:23,代码来源:Domains.php

示例7: function

<?php

Route::resource('contacts', 'ContactsController');
Route::model('contacts', 'AbuseIO\\Models\\Contact');
Route::group(['prefix' => 'contacts', 'as' => 'contacts.'], function () {
    // Search contacts
    Route::get('search/{one?}/{two?}/{three?}/{four?}/{five?}', ['middleware' => 'permission:contacts_view', 'as' => 'search', 'uses' => 'ContactsController@search']);
    // Access to index list
    route::get('', ['middleware' => 'permission:contacts_view', 'as' => 'index', 'uses' => 'ContactsController@index']);
    // Access to show object
    route::get('{contacts}', ['middleware' => 'permission:contacts_view', 'as' => 'show', 'uses' => 'ContactsController@show']);
    // Access to export object
    route::get('export/{format}', ['middleware' => 'permission:contacts_export', 'as' => 'export', 'uses' => 'ContactsController@export']);
    // Access to create object
    route::get('create', ['middleware' => 'permission:contacts_create', 'as' => 'create', 'uses' => 'ContactsController@create']);
    route::post('', ['middleware' => 'permission:contacts_create', 'as' => 'store', 'uses' => 'ContactsController@store']);
    // Access to edit object
    route::get('{contacts}/edit', ['middleware' => 'permission:contacts_edit', 'as' => 'edit', 'uses' => 'ContactsController@edit']);
    route::patch('{contacts}', ['middleware' => 'permission:contacts_edit', 'as' => 'update', 'uses' => 'ContactsController@update']);
    route::put('{contacts}', ['middleware' => 'permission:contacts_edit', 'as' => 'update', 'uses' => 'ContactsController@update']);
    // Access to delete object
    route::delete('{contacts}', ['middleware' => 'permission:contacts_delete', 'as' => 'destroy', 'uses' => 'ContactsController@destroy']);
});
开发者ID:ihatehandles,项目名称:AbuseIO,代码行数:23,代码来源:Contacts.php

示例8:

Route::post('categorias/{id}', ['uses' => 'CategoryController@destroyCategory', 'as' => 'categoryDelete']);
/* Search */
Route::post('proveedores', ['uses' => 'ProviderController@searchProviders', 'as' => 'searchProvider']);
Route::post('usuarios', ['uses' => 'UserController@searchUsers', 'as' => 'searchUser']);
Route::post('updateProvider/{id}', ['uses' => 'ProviderController@updateProvider', 'as' => 'updateProvider']);
Route::post('categorias', ['uses' => 'CategoryController@newSubcategory', 'as' => 'newSubcategory']);
Route::get('cultivos', ['uses' => 'FarmController@index', 'as' => 'farmIndex']);
Route::post('categorias-cultivos/create', ['uses' => 'FarmController@create', 'as' => 'farmCategories.create']);
Route::post('cultivos/create', ['as' => 'farms.create', 'uses' => 'FarmController@farmCreate']);
Route::get('/', ['uses' => 'HomeAdminController@index', 'as' => 'admin', 'middleware' => 'VerifyProvider']);
Route::get('proveedor', ['uses' => 'HomeAdminController@isValidateProviders', 'as' => 'isValidateProviders']);
/* Provider without register in providers table   */
Route::get('registro-proveedor', ['uses' => 'ProviderController@registerProvider', 'as' => 'registerProvider']);
Route::post('registro-proveedor', ['uses' => 'ProviderController@insertProvider', 'as' => 'registerProvider']);
Route::post('data-provider', ['uses' => 'ProviderController@insertProvider', 'as' => 'insertProvider']);
Route::get('informacion-cliente', ['uses' => 'ClientController@index', 'as' => 'clientInformationIndex']);
Route::post('informacion-cliente', ['uses' => 'ClientController@store', 'as' => 'clientInformationStore']);
Route::get('preguntas', ['uses' => 'QuestionController@index', 'as' => 'questions', 'middleware' => 'VerifyProvider']);
Route::post('preguntas', ['uses' => 'QuestionController@questionDetail', 'as' => 'questionDetail', 'middleware' => 'VerifyProvider']);
route::post('preguntas/new', ['uses' => 'QuestionController@questionNew', 'as' => 'questionNew', 'middleware' => 'VerifyProvider']);
route::post('download-pdf', ['uses' => 'BudgetController@download', 'as' => 'downloadBudget']);
Route::get('mis-presupuestos', ['uses' => 'BudgetController@showBack', 'as' => 'budgetShow']);
Route::get('mis-compras', ['uses' => 'ShoppingController@showBack', 'as' => 'orderShow']);
Route::get('mis-ordenes', ['uses' => 'ShoppingController@showBackProvider', 'as' => 'orderShowProvider']);
Route::get('perfil', ['uses' => 'UserController@indexProfile', 'as' => 'indexProfile']);
Route::post('perfil', ['uses' => 'UserController@userUpdate', 'as' => 'userUpdate']);
Route::post('perfil-proveedor', ['uses' => 'UserController@providerUpdate', 'as' => 'providerUpdate']);
Route::post('updateStateOrder', ['uses' => 'OrderController@updateStateOrder', 'as' => 'updateStateOrder']);
Route::post('NotifyIsActive', ['uses' => 'NotificationController@isActive', 'as' => 'NotifyIsActive']);
Route::get('notificaciones', ['uses' => 'NotificationController@index', 'as' => 'NotifyAll']);
Route::post('callProducts', ['uses' => 'ProductController@callProducts', 'as' => 'callProducts']);
开发者ID:juan2ramos,项目名称:agroseller,代码行数:31,代码来源:admin.php

示例9: function

});
Route::group(['prefix' => 'api/v1', 'middleware' => 'auth.basic'], function () {
    Route::get('fact/{id}/tag', 'TagController@index');
    Route::post('fact/{id}', 'FactController@update');
    Route::resource('no', 'NoController');
    Route::resource('fact', 'FactController');
    Route::resource('tag', 'TagController');
    Route::resource('answer', 'QuestionAnswerController');
    Route::resource('question', 'QuestionController');
    Route::get('user/{user_id}/fact', ['middleware' => 'userResource', 'uses' => 'FactController@index']);
    Route::post('user/{user_id}/fact', ['middleware' => 'userResource', 'uses' => 'FactController@store']);
    Route::resource('user', 'UserController');
    Route::post('user/{user_id}/fact/{fact_id}/tag', ['middleware' => 'userResource', 'uses' => 'TagFactController@store']);
    Route::delete('fact/{fact_id}/tag/{tag_id}', ['middleware' => 'userResource', 'uses' => 'TagFactController@destroy']);
    route::post('user/{user_id}/practice_session', ['middleware' => 'userResource', 'uses' => 'PracticeSessionController@store']);
    route::post('practice_material', 'PracticeMaterialController@store');
    Route::post('user/{user_id}/practice_session/{session_id}/session_type/{session_type}', ['middleware' => 'userResource', 'uses' => 'PracticeSessionController@edit']);
    Route::post('user/{user_id}/practice_session/{session_id}/material/{material_id}', ['middleware' => 'userResource', 'uses' => 'PracticeMaterialController@store']);
    Route::get('user/{user_id}/practice_session/{session_id}/material/{material_id}', ['middleware' => 'userResource', 'uses' => 'PracticeMaterialController@index']);
});
// userController
Route::get('/', function () {
    return view('app');
});
Route::get('login', function () {
    return view('login');
});
Route::group(['middleware' => 'auth.basic'], function () {
    Route::get('/gladys', function () {
        return view('gladys');
    });
开发者ID:RichNwankwo,项目名称:Gladysrepo,代码行数:31,代码来源:routes.php

示例10: function

        Route::get('themcvchinh', 'PhancvController@ThemcvChinh');
        Route::post('luuthemcvchinh', 'PhancvController@LuuThemcvChinh');
        /* ++ * Cập nhật Công việc chính  */
        Route::get('capnhatcvchinh/{macv}', 'PhancvController@CapNhatcvChinh');
        Route::post('luucapnhatcvchinh', 'PhancvController@LuuCapNhatcvChinh');
        /* ------ Xóa công việc chính -------- */
        Route::get('xoacvchinh/{macv}', 'PhancvController@XoacvChinh');
        /* ++  * CÔNG VIỆC CHI TIẾT   */
        Route::get('phancongchitiet/{macv}', 'PhancvController@DSPhanChiTiet');
        /* ++ * Thêm công việc chi tiết (công việc phụ thuộc)  */
        Route::get('phancongchitiet/{macv}/themcvphu', 'PhancvController@ThemcvPhu');
        Route::post('luuthemcvphu', 'PhancvController@LuuThemcvPhu');
        /* ++ * Cập nhật công việc chi tiết (công việc phụ thuộc)  */
        Route::get('phancongchitiet/{macv}/capnhatcvphu/{macvphu}', 'PhancvController@CapNhatcvPhu');
        Route::post('luucapnhatcvphu', 'PhancvController@LuuCapNhatcvPhu');
        /* ------ Xóa công việc chi tiết (công việc phụ thuộc) -------- */
        Route::get('phancongchitiet/{macv}/xoacvphu/{macvphu}', 'PhancvController@XoacvPhu');
    });
    /*======= danh sách NỘP TÀI LIỆU ==========*/
    route::get('danhsachnoptailieu', 'QltailieuController@DanhSachNopTaiLieu');
    Route::group(['prefix' => 'danhsachnoptailieu'], function () {
        /* ------ Nộp tài liệu -------- */
        route::get('noptailieu', 'QltailieuController@NopTaiLieu');
        route::post('luunoptailieu', 'QltailieuController@LuuNopTaiLieu');
        /* ------ Cập nhật tài liệu -------- */
        route::get('capnhatnoptailieu/{matl}', 'QltailieuController@CapNhatNopTL');
        route::post('luucapnhatnoptailieu', 'QltailieuController@LuuCapNhatNopTL');
        /* ------ Xóa tài liệu đã chọn -------- */
        Route::get('xoatailieu/{matl}', 'QltailieuController@XoaTaiLieu');
    });
});
开发者ID:HaNguyen1410,项目名称:laravProject1,代码行数:31,代码来源:routes.php

示例11: function

    Route::get('page/add', ['as' => 'page/add', 'uses' => 'admin\\PageController@CreateAction']);
    Route::post('page/add', ['as' => 'page/add', 'uses' => 'admin\\PageController@StoreAction']);
    Route::get('page/edit/{id}', ['as' => 'page/edit', 'uses' => 'admin\\PageController@EditAction']);
    Route::post('page/edit/{id}', ['as' => 'page/edit', 'uses' => 'admin\\PageController@UpdateAction']);
    Route::get('page/delete/{id}', ['as' => 'page/delete', 'uses' => 'admin\\PageController@DeleteAction']);
});
/*Banner Manager*/
Route::group(['prefix' => 'admin', 'middleware' => 'auth'], function () {
    Route::get('banner/list', ['as' => 'banner/list', 'uses' => 'admin\\BannerController@IndexAction']);
    Route::get('banner/add', ['as' => 'banner/add', 'uses' => 'admin\\BannerController@CreateAction']);
    Route::post('banner/add', ['as' => 'banner/add', 'uses' => 'admin\\BannerController@StoreAction']);
    Route::get('banner/edit/{id}', ['as' => 'banner/edit', 'uses' => 'admin\\BannerController@EditAction']);
    Route::post('banner/edit/{id}', ['as' => 'banner/edit', 'uses' => 'admin\\BannerController@UpdateAction']);
    Route::get('banner/delete/{id}', ['as' => 'banner/delete', 'uses' => 'admin\\BannerController@DeleteAction']);
});
/**
 * Frontend managing ROUTE is here ----------------
 *-------------------------------------------------
 *-------------------------------------------------
 */
/*for home controller*/
route::get('home', ['as' => 'home', 'uses' => 'front\\HomeController@IndexAction']);
/*for page controller*/
route::get('page/{page_url}', ['as' => 'page', 'uses' => 'front\\HomeController@PageAction']);
route::get('destination/{country_url}', ['as' => 'destination', 'uses' => 'front\\DestinationController@DestinationAction']);
route::get('destination/{country_url}/{category_url}', ['as' => 'destination/category', 'uses' => 'front\\DestinationController@CategoryAction']);
route::get('page/{page_url}', ['as' => 'page', 'uses' => 'front\\HomeController@PageAction']);
route::get('page/{page_url}/{sub_page_url}', ['as' => 'page', 'uses' => 'front\\HomeController@SubPageAction']);
route::get('package-detail/{country_url}/{category_url}/{package_url}', ['as' => 'package-detail', 'uses' => 'front\\DestinationController@PackageDetail']);
route::post('booking', ['as' => 'booking', 'uses' => 'front\\DestinationController@BookingAction']);
开发者ID:kumarsubedi93,项目名称:laravel_docs,代码行数:30,代码来源:routes.php

示例12: function

| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', function () {
    return view('welcome');
});
// Route::group(['prefix'=> 'admin', 'where' => ['id' => '[0-9]+']], function () {
//
//    Route::get('categories/{id}', ['as'=> 'categories', 'uses'=> 'AdminCategoriesController@index']);
//
//    Route::get('products/{id}', ['as'=> 'products', 'uses'=> 'AdminProductsController@index']);
// });
Route::group(['prefix' => 'admin'], function () {
    route::get('categories', ['as' => 'categories', 'uses' => 'CategoriesController@index']);
    route::post('categories', ['as' => 'categories.store', 'uses' => 'CategoriesController@store']);
    route::get('categories/create', ['as' => 'categories.create', 'uses' => 'CategoriesController@create']);
    route::get('categories/{id}/edit', ['as' => 'categories.edit', 'uses' => 'CategoriesController@edit']);
    route::put('categories/{id}/update', ['as' => 'categories.update', 'uses' => 'CategoriesController@update']);
    route::get('categories/{id}/destroy', ['as' => 'categories.destroy', 'uses' => 'CategoriesController@destroy']);
    route::get('products', ['as' => 'products', 'uses' => 'ProductsController@index']);
    route::post('products', ['as' => 'products.store', 'uses' => 'ProductsController@store']);
    route::get('products/create', ['as' => 'products.create', 'uses' => 'ProductsController@create']);
    route::get('products/{id}/edit', ['as' => 'products.edit', 'uses' => 'ProductsController@edit']);
    route::put('products/{id}/update', ['as' => 'products.update', 'uses' => 'ProductsController@update']);
    route::get('products/{id}/destroy', ['as' => 'products.destroy', 'uses' => 'ProductsController@destroy']);
});
开发者ID:estevamneto,项目名称:Code-Commerce3-1,代码行数:31,代码来源:routes.php

示例13: array

            $parameters = array($menu['url'], ['as' => $menu['as'], 'uses' => $menu['action'], 'middleware' => $menu['middleware']]);
            forward_static_call_array(array('route', $menu['method']), $parameters);
        }
    }
});
/*
|--------------------------------------------------------------------------
| 店铺通用显示数据处理
|--------------------------------------------------------------------------
*/
route::group(array('prefix' => 'utils'), function () {
    # 系统分类
    route::post('syscat.html', ['as' => 'toputil.syscat', 'uses' => 'toputil_ctl_syscat@getChildrenCatList']);
    route::get('vcode.html', ['as' => 'toputil.vcode', 'uses' => 'toputil_ctl_vcode@gen_vcode']);
    route::post('util/upload_images.html', ['as' => 'toputil.uploadImages', 'uses' => 'toputil_ctl_image@uploadImages']);
    route::post('util/upload_imageses.html', ['as' => 'toputil.uploadImages', 'uses' => 'toputil_ctl_image@uploadImageses']);
    route::get('util/item_pic.html', ['as' => 'toputil.getDefaultItemPic', 'uses' => 'toputil_ctl_image@getItemPic']);
});
/*
|--------------------------------------------------------------------------
| 后台通用route
|--------------------------------------------------------------------------
*/
route::group(array('prefix' => 'shopadmin'), function () {
    # 系统分类
    route::match(array('GET', 'POST'), '/', array('as' => 'shopadmin', 'uses' => 'desktop_router@dispatch'));
});
/*
|--------------------------------------------------------------------------
| setup
|--------------------------------------------------------------------------
开发者ID:453111208,项目名称:bbc,代码行数:31,代码来源:routes.php

示例14: function

*/
Route::group(['middleware' => ['web', 'auth']], function () {
    Route::resource('/admin/articulo', 'PostController');
    Route::get('/admin/blogs', 'PsController@index');
    Route::resource('/admin/Template', 'TemplateController');
});
Route::group(['middleware' => ['web', 'auth', 'home']], function () {
    Route::get('/home', 'HomeController@index');
});
Route::group(['middleware' => ['web']], function () {
    Route::auth();
    Route::resource('/admin/fotos', 'imagesController');
    Route::get('/admin/galeria', 'ImageController@index');
});
// Restaurant ..
Route::group(['middleware' => ['web', 'auth', 'restaurant']], function () {
    Route::get('/admin/menu', 'MenusController@index');
    Route::resource('/menu', 'MenuController');
});
// Bar ..
Route::group(['middleware' => ['web', 'auth', 'bar']], function () {
    Route::get('/admin/drink', 'DrinksController@index');
    Route::resource('/drink', 'DrinkController');
    Route::get('/admin/events', 'EventsController@index');
    route::resource('/event', 'EventController');
    route::post('/file', 'EventController@uplad');
});
// Profiles ...
Route::group(['middleware' => ['web']], function () {
    Route::get('/profiles/{slug}', 'ProfileController@template');
});
开发者ID:Carlos-Stgo,项目名称:Apppromo,代码行数:31,代码来源:routes.php

示例15: function

<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', function () {
    return view('welcome');
});
route::get('client', 'ClientController@index');
route::post('client', 'ClientController@store');
route::get('client/{id}', 'ClientController@show');
route::delete('client/{id}', 'ClientController@destroy');
route::put('client/{id}', 'ClientController@update');
开发者ID:josealvjunior,项目名称:CrudLaravel,代码行数:20,代码来源:routes.php


注:本文中的route::post方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。