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


PHP Route::DELETE方法代码示例

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


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

示例1: function

        Route::GET('/contact', 'extraController@contactIndex');
        //            Patch the index extra about
        Route::PATCH('/about/update', 'extraController@aboutUpdate');
        //            Patch the index extra contact
        Route::PATCH('/contact/update', 'extraController@contactUpdate');
    });
    /*To Do List Module*/
    Route::group(['prefix' => 'todo', 'namespace' => 'Todo'], function () {
        //                GET the index
        Route::GET('/', 'todoController@index');
        //            GET the add new
        Route::GET('/add', 'todoController@create');
        //            POST the add
        Route::POST('/store/{id}', 'todoController@store');
        //            DELETE the todo
        Route::DELETE('delete/{id}', 'todoController@destroy');
    });
});
//OAUTH Facebook
//Route::GET('facebook/authorize');
Route::GET('facebook/authorize', function () {
    return SocialAuth::authorize('facebook');
});
Route::GET('auth/facebook/login', function () {
    SocialAuth::login('facebook', function ($user, $userdetails) {
        var_dump($userdetails);
    });
    return "DONE ";
});
Route::GET('github/authorize', function () {
    return SocialAuth::authorize('github');
开发者ID:prio101,项目名称:rentit-laravel,代码行数:31,代码来源:routes.php

示例2: array

    Route::POST('cart/jual', array('uses' => 'PenjualanController@addCart', 'as' => 'add.cart'));
    Route::post('laporan/penjualan', ['uses' => 'PenjualanController@getData']);
    Route::get('penjualan/laporan', ['uses' => 'PenjualanController@laporan']);
    Route::get('api/penjualan', ['uses' => 'PenjualanController@apiJual']);
    Route::get('penjualan', array('uses' => 'PenjualanController@index'));
    Route::get('penjualan/cart/delete/{id}', array('uses' => 'PenjualanController@deletecart'));
    Route::get('penjualan/cart', array('uses' => 'PenjualanController@cart'));
    Route::POST('penjualan/store', array('uses' => 'PenjualanController@store', 'as' => 'penjualan.store'));
    Route::get('barang/api', array('uses' => 'PenjualanController@apiBarang'));
    Route::get('pelanggan/api', array('uses' => 'PenjualanController@apiPelanggan'));
    Route::get('penjualan/struk', array('uses' => 'PenjualanController@faktur'));
    Route::DELETE('penjualan/delete/{id}', ['uses' => 'PenjualanController@destroy']);
    Route::get('penjualan/resetCart', ['uses' => 'PenjualanController@resetCart']);
    Route::get('penjualan/show/{id}', ['uses' => 'PenjualanController@show']);
    Route::get('penjualan/delete/{id}', ['uses' => 'PenjualanController@hapus']);
    Route::get('pelanggan', array('uses' => 'PelangganController@index'));
    Route::get('api/pelanggan', array('uses' => 'PelangganController@apiPelanggan'));
    Route::get('api/getId', ['uses' => 'PelangganController@idPelanggan']);
    Route::DELETE('pelanggan/delete/{id}', ['uses' => 'PelangganController@destroy']);
    Route::POST('pelanggan/store', ['uses' => 'PelangganController@store']);
    Route::get('pelanggan/edit/{id}', array('uses' => 'PelangganController@edit'));
    Route::PUT('pelanggan/update/{id}', ['uses' => 'PelangganController@update', 'as' => 'pelanggan.update']);
    Route::get('suplier', array('uses' => 'SuplierController@index'));
    Route::get('api/suplier', array('uses' => 'SuplierController@apiSuplier'));
    Route::get('api/getIdSuplier', ['uses' => 'SuplierController@idSuplier']);
    Route::DELETE('suplier/delete/{id}', ['uses' => 'SuplierController@destroy']);
    Route::POST('suplier/store', ['uses' => 'SuplierController@store']);
    Route::get('suplier/edit/{id}', array('uses' => 'SuplierController@edit'));
    Route::PUT('suplier/update/{id}', ['uses' => 'SuplierController@update', 'as' => 'suplier.update']);
    Route::get('logout', ['uses' => 'UserController@logout']);
});
开发者ID:adit33,项目名称:cobaan,代码行数:31,代码来源:routes.php

示例3: function

/************************************
* Admin
************************************/
Route::group(['middleware' => 'web'], function () {
    $config = ['as' => 'admin.', 'prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => ['role:boss|admin']];
    Route::group($config, function () {
        Route::get('/', ['as' => 'dashboard', 'uses' => 'HomeController@index']);
        Route::get('/dashboard/information', 'InfoController@dashboard');
        Route::get('/fetchAuth', 'InfoController@auth');
        Route::get('/users', 'UserController@activeUsers');
        Route::get('/users/notActive', 'UserController@notActiveUsers');
        Route::get('/users/trashed', 'UserController@trashedUsers');
        Route::put('/users/restore/{id}', 'UserController@restoreUser');
        Route::put('/users/toggleActive/{id}', 'UserController@toggleUserActive');
        Route::DELETE('/users/remove/{id}', 'UserController@removeToTrash');
        Route::DELETE('/users/delete/{id}', 'UserController@deleteUser');
        Route::get('/roles', 'RoleController@index');
        Route::post('/roles/user/{id}', 'RoleController@assign');
        Route::get('/categories', 'CategoryController@index');
        Route::post('/categories', 'CategoryController@store');
        Route::post('/categories/update/{id}', 'CategoryController@update');
        Route::delete('/categories/{id}', 'CategoryController@destory');
        Route::get('/series', 'SeriesController@index');
        Route::post('/series', 'SeriesController@store');
        Route::post('/series/update/{id}', 'SeriesController@update');
        Route::delete('/series/{id}', 'SeriesController@destory');
        Route::get('/videos', 'VideoController@index');
        Route::post('/videos', 'VideoController@store');
        Route::put('/videos/{id}', 'VideoController@update');
        Route::delete('/videos/{id}', 'VideoController@destory');
        Route::get('/blogs', 'BlogController@index');
开发者ID:RryLee,项目名称:learner.video,代码行数:31,代码来源:routes.php

示例4:

Route::get('/login', 'UsersController@showlogin');
Route::post('/login', 'UsersController@dologin');
Route::get('/signup', 'UsersController@showsignup');
Route::post('/signup', 'UsersController@store');
Route::get('/logout', 'UsersController@logout');
Route::get('/users/edit', 'UsersController@showedit');
Route::post('/users/edit', 'UsersController@update');
Route::get('/socialstudy', 'MeetupsController@index');
Route::get('/socialstudy/create', 'MeetupsController@createmeetup');
Route::post('/socialstudy/create', 'MeetupsController@store');
Route::get('/socialstudy/{id}/edit', 'MeetupsController@showedit');
Route::post('/socialstudy/{id}/edit', 'MeetupsController@updatemeetup');
Route::get('/socialstudy/{id}', 'MeetupsController@showmeetup');
Route::DELETE('/socialstudy/{id}', 'MeetupsController@destroy');
Route::get('/socialstudy/{id}/comment', 'MeetupsController@commentform');
Route::post('/socialstudy/{id}/comment', 'MeetupsController@postcomment');
Route::DELETE('/socialstudy/{id}/comment', 'MeetupsController@deletecomment');
Route::get('/socialstudy/{id}/comment/edit', 'MeetupsController@showeditcomment');
Route::post('/socialstudy/{id}/comment/edit', 'MeetupsController@editcomment');
Route::get('/socialstudy/{id}/invite', 'MeetupsController@showinvite');
Route::post('/socialstudy/{id}/invite', 'MeetupsController@inviteguest');
Route::get('/feed', 'FeedController@showMain');
Route::get('/feed/sheets', 'FeedController@showSheets');
Route::get('/feed/notes', 'FeedController@showNotes');
Route::get('/feed/socialstudy', 'FeedController@showMeetups');
Route::get('/notes/{id}/up', 'NotesController@voteUp');
Route::get('/notes/{id}/down', 'NotesController@voteDown');
Route::get('/sheets/{id}/up', 'SheetsController@voteUp');
Route::get('/sheets/{id}/down', 'SheetsController@voteDown');
Route::get('/socialstudy/{id}/up', 'MeetupsController@voteUp');
Route::get('/socialstudy/{id}/down', 'MeetupsController');
开发者ID:betanotes,项目名称:betanotes.dev,代码行数:31,代码来源:routes.php

示例5: 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('/', 'HomeController@index');
//指定首页
Route::get('auth/register', 'Auth\\AuthController@getRegister');
Route::post('auth/register', 'Auth\\AuthController@postRegister');
Route::get('auth/login', 'Auth\\AuthController@getLogin');
Route::post('auth/login', 'Auth\\AuthController@postLogin');
Route::get('auth/logout', 'Auth\\AuthController@getLogout');
// 引导用户到新浪微博的登录授权页面
Route::get('auth/weibo', 'Auth\\AuthController@weibo');
// 用户授权后新浪微博回调的页面
Route::get('auth/callback', 'Auth\\AuthController@callback');
Route::get('user/{id}', 'ArticleController@index');
Route::get('article/{id}', 'ArticleController@showArticle')->where('id', '[0-9]+');
Route::group(['middleware' => 'Permission'], function () {
    Route::get('home', 'ArticleController@showController');
    Route::get('article/create', 'ArticleController@create');
    Route::post('article/create', 'ArticleController@store');
    Route::get('article/{id}/edit', 'ArticleController@edit');
    Route::DELETE('article/delete/{id}', 'ArticleController@destroy');
    Route::post('/post_case/{id}', 'UserController@post_case');
});
开发者ID:jew977,项目名称:laravelhub,代码行数:31,代码来源:routes.php

示例6: function

    # Reset Password Progress Routes
    Route::get('forgot', 'AuthController@forgot')->name('forgot');
    Route::post('forgot', 'AuthController@postForgot');
    Route::get('reset/{code}', 'AuthController@reset');
    Route::post('reset', 'AuthController@postReset');
});
# Users Route Group
Route::group(['middleware' => ['auth']], function () {
    Route::get('logout', 'AuthController@logout')->name('logout');
    Route::get('deactivate', 'AuthController@deactivate')->name('deactivate');
    Route::get('/posts', 'PostsController@index');
    Route::get('/post/create/', 'PostsController@create');
    Route::post('/post/create/', 'PostsController@store');
    Route::get('/post/{category_id}/{id}', 'PostsController@edit');
    Route::post('/post/{category_id}/{id}', 'PostsController@update');
    Route::DELETE('/post/delete/{id}', 'PostsController@delete');
    Route::post('sample/{sample}/{str}', 'SamplesController@createComment');
    Route::get('comment/delete/{comment}', 'CommentsController@destroy')->name('comment.delete');
    Route::group(['prefix' => 'user'], function () {
        Route::resource('blog', 'BlogsController', ['except' => ['show']], ['names' => ['create' => 'user.blog.create', 'store' => 'user.blog.store', 'edit' => 'user.blog.edit', 'update' => 'user.blog.update', 'index' => 'user.blog.index']]);
        Route::resource('sample', 'SamplesController', ['except' => ['show']], ['names' => ['create' => 'user.sample.create', 'store' => 'user.sample.store', 'edit' => 'user.sample.edit', 'update' => 'user.sample.update', 'index' => 'user.sample.index']]);
        // Route::post('blog/{blog}/{str}', 'BlogsController@createComment');
        // Route::post('download/{download}/{str}', 'DownloadsController@createComment');
        // Route::get('ajax/tag', 'AjaxController@searchTags')->name('ajax.tag.search');
    });
    # User Account Options
    Route::group(['prefix' => 'account'], function () {
        Route::get('/', 'AuthController@account')->name('account');
        // Route::get('kill', 'AuthController@kill');
        // Route::get('kill-all', 'AuthController@killAll');
        // Route::get('kill/{code}', 'AuthController@removeUser');
开发者ID:majid-n,项目名称:laravel,代码行数:31,代码来源:routes.php

示例7: array

 Route::post('employee.update', ['as' => 'updateemployee', 'uses' => 'EmployeeController@api_updateemployee']);
 Route::post('employee.delete', ['as' => 'deleteemployee', 'uses' => 'EmployeeController@api_deleteemployee']);
 Route::post('employee.add', ['as' => 'addemployee', 'uses' => 'EmployeeController@api_addemployee']);
 Route::get('items.index', ['as' => 'itemindex', 'uses' => 'ProjectController@view']);
 Route::post('items.update', ['as' => 'itemupdate', 'uses' => 'ProjectController@update']);
 Route::post('items.delete', ['as' => 'itemdelete', 'uses' => 'ProjectController@destroy']);
 Route::post('adduser', ['as' => 'adduser', 'uses' => 'userController@add']);
 /*--------- Project --------------*/
 //route::get('projects', 'ProjectController@index');
 Route::get('projects/getteam/{id}', ['as' => 'projects.getteam', 'uses' => 'ProjectController@getTeam']);
 Route::get('projects/getusers/{id}', ['as' => 'projects.getusers', 'uses' => 'ProjectController@getUsers']);
 Route::get('projects/getstatus', ['as' => 'projects.getstatus', 'uses' => 'ProjectController@getStatus']);
 Route::get('projects/getgroups', ['as' => 'projects.getgroups', 'uses' => 'ProjectController@getGroups']);
 Route::POST('projects/team', ['as' => 'projects.team', 'uses' => 'ProjectController@storeTeam']);
 Route::PUT('projects/team/{id}', ['as' => 'projects.team', 'uses' => 'ProjectController@updateTeam']);
 Route::DELETE('projects/team/{id}', ['as' => 'projects.team', 'uses' => 'ProjectController@destroyTeam']);
 Route::resource('projects', 'ProjectController');
 /*--------- End Project --------------*/
 Route::get('/', ['as' => 'index', 'uses' => 'PageController@index']);
 Route::get('configures', ['as' => 'configures.index', 'uses' => 'ConfigureController@index']);
 Route::post('configures/update', ['as' => 'configures.update', 'uses' => 'ConfigureController@update']);
 Route::resource('users', 'UserController');
 Route::resource('groups', 'GroupController');
 Route::get('groups/{id}/permission', array('as' => 'groups.permission', 'uses' => 'GroupController@getPermission'));
 Route::post('groups/{id}/permission', array('as' => 'groups.permission', 'uses' => 'GroupController@postPermission'));
 Route::resource('features', 'FeatureController');
 Route::resource('modules', 'ModuleController');
 Route::get('showtree/{id}', 'ModuleController@showtree');
 Route::get('parent', ['as' => 'post-parent', 'uses' => 'FeatureController@postFeature']);
 Route::get('languages', ['as' => 'languages.index', 'uses' => 'LanguagesController@index']);
 Route::get('languages/{id}', ['as' => 'languages.change', 'uses' => 'LanguagesController@change']);
开发者ID:phanngoc,项目名称:internal-tool,代码行数:31,代码来源:routes.php

示例8:

    Route::post('/user/{id}', ['uses' => 'AdminController@userUpdate']);
    Route::post('/rcon/say', ['uses' => 'AdminController@rconSay']);
    Route::get('/totp/{id}', ['uses' => 'AdminController@totp']);
    Route::get('/remboursement', ['uses' => 'AdminController@refunds']);
    Route::get('/remboursement/{id}', ['uses' => 'AdminController@refundsShow', 'as' => 'refund'])->where('id', '[0-9]+');
    Route::post('/remboursement/{id}', ['uses' => 'AdminController@refundsUpdate'])->where('id', '[0-9]+');
    Route::post('/remboursement/open/{id}', ['uses' => 'AdminController@refunds_open']);
    Route::get('/remboursement/close/{id}', ['uses' => 'AdminController@refunds_close']);
    Route::get('/remboursement/reopen/{id}', ['uses' => 'AdminController@refunds_reopen']);
    Route::get('/vehicule/{id}', ['uses' => 'AdminController@vehicule']);
    Route::post('/vehicule/{id}', ['uses' => 'AdminController@vehicule_update']);
    Route::post('/vehicule/', ['uses' => 'AdminController@vehicule_delete']);
    Route::get('/house', ['uses' => 'AdminController@house']);
    Route::get('/settings', ['uses' => 'AdminController@settings']);
    Route::post('/settings', ['uses' => 'AdminController@settingsUpdate']);
    Route::post('/settings/parameters', ['uses' => 'AdminController@settingParam']);
    Route::DELETE('/settings/{id}', ['uses' => 'AdminController@settingDestroy']);
    Route::get('/support', ['uses' => 'AdminController@support']);
    Route::get('/support/{id}', ['uses' => 'AdminController@support_show'])->where('id', '[0-9]+');
    Route::get('/support/close/{id}', ['uses' => 'AdminController@close']);
    Route::get('/support/open/{id}', ['uses' => 'AdminController@open']);
    Route::post('/support/reply/{id}', ['uses' => 'AdminController@reply']);
    Route::resource('stream', 'StreamsController');
    Route::resource('news', 'NewsController');
    Route::resource('shop', 'ShopsController');
    Route::resource('page', 'PagesController');
    Route::resource('offense', 'OffensesController');
});
Route::controllers(['auth' => 'Auth\\AuthController', 'password' => 'Auth\\PasswordController']);
Route::get('totp', ['uses' => 'Auth\\AuthController@totp']);
Route::post('totp', ['uses' => 'Auth\\AuthController@totp']);
开发者ID:emile442,项目名称:altis-pan,代码行数:31,代码来源:routes.php

示例9:

    Route::get('admin/services/create', 'ServiceController@create');
    // POST	/services	store	services.store
    Route::post('admin/services', 'ServiceController@store');
    // GET	/services/{id}	show	services.show
    // Route::get('admin/services/{id}', 'ServiceController@show');
    // GET	/services/{id}/edit	edit	services.edit
    Route::get('admin/services/{id}/edit', 'ServiceController@edit');
    // PUT/PATCH	/services/{id}	update	services.update
    Route::PUT('admin/services/{id}', 'ServiceController@update');
    // DELETE	/services/{id}	destroy	services.destroy
    Route::DELETE('admin/services/{id}', 'ServiceController@destroy');
    /**
     * service service_details
     *
     * @Author @mir
     */
    // GET	/service_details	index	service_details.index
    Route::get('admin/service_details/{id}', 'Service_detailController@index');
    // GET	/service_details/create	create	service_details.create
    Route::get('admin/service_details/{id}/create', 'Service_detailController@create');
    // POST	/service_details	store	service_details.store
    Route::post('admin/service_details/{id}', 'Service_detailController@store');
    // GET	/service_details/{id}	show	service_details.show
    // Route::get('admin/service_details/{id}', 'Service_detailController@show');
    // GET	/service_details/{id}/edit	edit	service_details.edit
    Route::get('admin/service_details/{id}/edit', 'Service_detailController@edit');
    // PUT/PATCH	/service_details/{id}	update	service_details.update
    Route::PUT('admin/service_details/{id}', 'Service_detailController@update');
    // DELETE	/service_details/{id}	destroy	service_details.destroy
    Route::DELETE('admin/service_details/{id}', 'Service_detailController@destroy');
});
开发者ID:AmirHome,项目名称:concept_20151123,代码行数:31,代码来源:routes.php

示例10: function

    // check if the user approved or denied the authorization request
    if (!empty($input['approve'])) {
        $code = AuthorizationServer::newAuthorizeRequest('user', $params['user_id'], $params);
        Session::forget('authorize-params');
        return Redirect::to(AuthorizationServer::makeRedirectWithCode($code, $params));
    } else {
        if (!empty($input['deny'])) {
            Session::forget('authorize-params');
            return Redirect::to(AuthorizationServer::makeRedirectWithError($params));
        } else {
            return "Error processing form";
        }
    }
}));
/**
 * Route url with any v# to the resource controller, let IoC Dependency injection determine proper version of API to inject
 */
Route::group(array('prefix' => 'api/{v1}'), function () {
    // Manually define resource routes to catch all resource end points
    // Retrieve data
    Route::GET('{route}', array('as' => 'api.{v1}.{route}.index', 'uses' => 'ResourceController@index'));
    Route::GET('{route}/{id}', array('as' => 'api.{v1}.{route}.show', 'uses' => 'ResourceController@show'));
    // Retrive Forms for Create/Update
    Route::GET('{route}/create', array('as' => 'api.{v1}.{route}.create', 'uses' => 'ResourceController@create'));
    Route::GET('{route}/{id}/edit', array('as' => 'api.{v1}.{route}.edit', 'uses' => 'ResourceController@edit'));
    // Modify Existing Data Create/Update/Edit/Delete
    Route::POST('{route}', array('as' => 'api.{v1}.{route}.store', 'uses' => 'ResourceController@store'));
    Route::PUT('{route}/{id}', array('as' => 'api.{v1}.{route}.update', 'uses' => 'ResourceController@update'));
    Route::PATCH('{route}/{id}', 'ResourceController@update');
    Route::DELETE('{route}/{id}', array('as' => 'api.{v1}.{route}.destroy', 'uses' => 'ResourceController@destroy'));
});
开发者ID:folkevil,项目名称:restfulapi,代码行数:31,代码来源:routes.php


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