本文整理汇总了PHP中Route::patch方法的典型用法代码示例。如果您正苦于以下问题:PHP Route::patch方法的具体用法?PHP Route::patch怎么用?PHP Route::patch使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Route
的用法示例。
在下文中一共展示了Route::patch方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setRoutes
public function setRoutes()
{
$pages = collect(\Config::get('pages'));
foreach ($pages as $page) {
if (!$page['uses']) {
continue;
}
switch ($page['method']) {
case 'get':
\Route::get($this->getUri($page), ['as' => $this->getName($page), 'uses' => $page['uses']]);
break;
case 'post':
\Route::post($this->getUri($page), ['as' => $this->getName($page), 'uses' => $page['uses']]);
break;
case 'patch':
\Route::patch($this->getUri($page), ['as' => $this->getName($page), 'uses' => $page['uses']]);
break;
case 'delete':
\Route::patch($this->getUri($page), ['as' => $this->getName($page), 'uses' => $page['uses']]);
break;
case 'any':
\Route::any($this->getUri($page), ['as' => $this->getName($page), 'uses' => $page['uses']]);
}
}
}
示例2: 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.
|
*/
// Authentication Routes...
Route::get('auth/login', 'Auth\\AuthController@login');
Route::get('auth/logout', 'Auth\\AuthController@getLogout');
Route::group(['middleware' => 'pjax'], function () {
Route::get('/', ['as' => 'lots.index', 'uses' => 'LotController@index']);
Route::get('/history', ['as' => 'lots.history', 'uses' => 'LotController@history']);
Route::get('/profile', ['as' => 'profile.index', 'uses' => 'ProfileController@index']);
Route::get('/profile/lots', ['as' => 'profile.lots', 'uses' => 'ProfileController@lots']);
Route::patch('/profile/update/tradeUrl', ['as' => 'profile.update.tradeUrl', 'uses' => 'ProfileController@updateTradeURL']);
});
Route::group(['prefix' => 'admin', 'middleware' => ['auth', 'acl'], 'can' => 'admin.access'], function () {
Route::get('/', 'AdminController@index');
});
示例3: function
Route::get('email', ['as' => 'password.email', 'uses' => 'PasswordController@getEmail']);
Route::post('email', ['as' => 'password.email', 'uses' => 'PasswordController@postEmail']);
Route::get('reset/{token}', ['as' => 'password.reset', 'uses' => 'PasswordController@getReset']);
Route::post('reset', ['as' => 'password.reset', 'uses' => 'PasswordController@postEmail']);
});
});
// API routes
Route::group(['prefix' => 'api', 'namespace' => 'Api'], function () {
// DataTables
Route::get('table/article', ['as' => 'api.table.article', 'uses' => 'DataTableController@getArticles']);
Route::get('table/category', ['as' => 'api.table.category', 'uses' => 'DataTableController@getCategories']);
Route::get('table/language', ['as' => 'api.table.language', 'uses' => 'DataTableController@getLanguages']);
Route::get('table/user', ['as' => 'api.table.user', 'uses' => 'DataTableController@getUsers']);
});
// Admin routes
Route::group(['prefix' => 'admin', 'namespace' => 'Admin', 'middleware' => 'auth'], function () {
// GET
Route::get('/', ['as' => 'admin.root', 'uses' => 'DashboardController@index']);
Route::get('setting', ['as' => 'admin.setting.index', 'uses' => 'SettingController@getSettings']);
// POST
Route::post('language/change', ['as' => 'admin.language.change', 'uses' => 'LanguageController@postChange']);
Route::post('page/order', ['as' => 'admin.page.order', 'uses' => 'PageController@postOrder']);
// PATCH
Route::patch('setting/{setting}', ['as' => 'admin.setting.update', 'uses' => 'SettingController@patchSettings']);
// Resources
Route::resource('article', 'ArticleController');
Route::resource('category', 'CategoryController');
Route::resource('language', 'LanguageController');
Route::resource('page', 'PageController');
Route::resource('user', 'UserController');
});
示例4:
/**
* Notes Controller
*/
Route::get('/notes/create', ['as' => 'notes.create', 'uses' => 'NotesController@create']);
Route::post('/notes/create', ['as' => 'notes.create', 'uses' => 'NotesController@store']);
Route::get('/notes', ['as' => 'notes.index', 'uses' => 'NotesController@index']);
Route::get('/notes/{id}/download', ['as' => 'notes.download', 'uses' => 'NotesController@download']);
Route::get('/notes/{slug}', ['as' => 'notes.show', 'uses' => 'NotesController@show']);
/**
* Quotes Controller
*/
Route::get('/quotes/create', ['as' => 'quotes.create', 'uses' => 'QuotesController@create']);
Route::post('/quotes/create', ['as' => 'quotes.create', 'uses' => 'QuotesController@store']);
Route::get('/quotes', ['as' => 'quotes.index', 'uses' => 'QuotesController@index']);
Route::get('/quotes/{id}/edit', ['as' => 'quotes.edit', 'uses' => 'QuotesController@edit']);
Route::patch('/quotes/{id}/edit', ['as' => 'quotes.update', 'uses' => 'QuotesController@update']);
Route::get('/quotes/{id}/setasqotd', ['as' => 'quotes.setasqotd', 'uses' => 'QuotesController@setasqotd']);
/**
* OrganisationsController
*/
Route::get('/organisations', ['as' => 'org.index', 'uses' => 'OrganisationsController@index']);
Route::get('/org/create', ['as' => 'org.create', 'uses' => 'OrganisationsController@create']);
Route::post('/org/create', ['as' => 'org.create', 'uses' => 'OrganisationsController@store']);
Route::delete('/org/{id}', ['as' => 'org.delete', 'uses' => 'OrganisationsController@destroy']);
/**
* NewsLetter Controller
*/
Route::post('/newsletter/subscribe', ['as' => 'newsletter.subscribe', 'uses' => 'NewsletterController@subscribe']);
Route::get('/newsletter', ['as' => 'newsletter.index', 'uses' => 'NewsletterController@index']);
Route::get('/newsletter/{name}', ['as' => 'newsletter.show', 'uses' => 'NewsletterController@show']);
Route::get('/newsletter/{name}/download', ['as' => 'newsletter.download', 'uses' => 'NewsletterController@download']);
示例5: function
Route::get('auth/verify/{code}', 'Auth\\AuthController@verifyEmail');
// Password reset
Route::get('password/email', 'Auth\\PasswordController@getEmail')->name('auth.password');
Route::post('password/email', 'Auth\\PasswordController@postEmail');
Route::get('password/reset/{token}', 'Auth\\PasswordController@getReset');
Route::post('password/reset', 'Auth\\PasswordController@postReset');
// Social
Route::get('auth/social/{provider}', 'Auth\\AuthController@redirectToProvider')->name('social.redirect');
Route::get('auth/social/{provider}/callback', 'Auth\\AuthController@handleProviderCallback')->name('social.handle');
// Profile
Route::get('profile', 'ProfilesController@show')->name('profile.my');
Route::get('profile/create', 'ProfilesController@create')->name('profile.create');
Route::post('profile/upload', 'ProfilesController@upload')->name('profile.upload');
Route::get('profile/{id}/edit', 'ProfilesController@edit')->name('profile.edit')->where('id', '[0-9]+');
Route::match(['get', 'post'], 'profile/{id}/edit/settings', 'ProfilesController@editSettings')->name('profile.edit.settings')->where('id', '[0-9]+');
Route::patch('profile/{id}/update', 'ProfilesController@update')->name('profile.update')->where('id', '[0-9]+');
Route::get('profile/{id?}', 'ProfilesController@show')->name('profile.display')->where('id', '[0-9]+');
// Settings
Route::get('settings/account', function () {
return view('settings.account');
})->name('settings.account');
Route::get('settings/notifications', function () {
return view('settings.notifications');
})->name('settings.notifications');
// TBD
Route::get('/tbd', function () {
return view('tbd');
})->name('tbd');
// Dashboard
Route::get('/dashboard', function () {
return view('dashboard');
示例6: function
Route::post('orders/update/{id}', ['as' => 'orders.update', 'uses' => 'OrdersController@update']);
Route::get('cupoms', ['as' => 'cupoms.index', 'uses' => 'CupomsController@index']);
Route::get('cupoms/create', ['as' => 'cupoms.create', 'uses' => 'CupomsController@create']);
Route::post('cupoms/store', ['as' => 'cupoms.store', 'uses' => 'CupomsController@store']);
Route::get('cupoms/show/{id}', ['as' => 'cupoms.show', 'uses' => 'CupomsController@show']);
Route::get('cupoms/edit/{id}', ['as' => 'cupoms.edit', 'uses' => 'CupomsController@edit']);
Route::post('cupoms/update/{id}', ['as' => 'cupoms.update', 'uses' => 'CupomsController@update']);
});
Route::group(['prefix' => 'customer', 'as' => 'customer.'], function () {
Route::get('order', ['as' => 'order.index', 'uses' => 'CheckoutController@index']);
Route::get('order/create', ['as' => 'order.create', 'uses' => 'CheckoutController@create']);
Route::post('order/store', ['as' => 'order.store', 'uses' => 'CheckoutController@store']);
});
Route::group(['middleware' => 'cors'], function () {
Route::post('oauth/access_token', function () {
return Response::json(Authorizer::issueAccessToken());
});
Route::group(['prefix' => 'api', 'middleware' => 'oauth', 'as' => 'api.'], function () {
//Rotas isoladas devem vir antes dos resources!
Route::get('user/authenticated', 'UserController@authenticated');
Route::group(['prefix' => 'teste', 'middleware' => 'oauth', 'as' => 'teste.'], function () {
});
Route::group(['prefix' => 'client', 'middleware' => 'oauth.checkrole:client', 'as' => 'client.'], function () {
Route::resource('order', 'Api\\Client\\ClientCheckoutController', ['except' => ['create', 'edit', 'destroy']]);
});
Route::group(['prefix' => 'deliveryman', 'middleware' => 'oauth.checkrole:deliveryman', 'as' => 'deliveryman.'], function () {
Route::resource('order', 'Api\\Deliveryman\\DeliverymanCheckoutController', ['only' => ['index', 'show']]);
Route::patch('order/{id}/update-status', ['uses' => 'Api\\Deliveryman\\DeliverymanCheckoutController@updateStatus', 'as' => 'orders.update_status']);
});
});
});
示例7:
Route::delete('adverts/{id}', ['as' => 'advert.destroy', 'uses' => 'AdvertsController@destroy']);
Route::delete('user/delete/{id}', ['as' => 'user.destroy', 'uses' => 'UserController@destroy']);
Route::delete('tags/{name}', ['as' => 'tags.destroy', 'uses' => 'TagsController@destroy']);
Route::post('admin/users/give/{id}', ['as' => 'admin.give', 'uses' => 'UserController@giveAdmin']);
Route::post('admin/users/take/{id}', ['as' => 'admin.take', 'uses' => 'UserController@takeAdmin']);
Route::get('tags/{tags}', 'TagsController@show');
Route::get('adverts', 'AdvertsController@index');
Route::get('adverts/{id}', 'AdvertsController@show');
Route::get('/user/edit/{id}', 'UserController@edit');
Route::put('/user/edit/{id}', 'UserController@update');
Route::patch('/user/edit/{id}', 'UserController@update');
Route::get('user/edit/password/{id}', 'UserController@editPassword');
Route::put('user/edit/password/{id}', 'UserController@updatePassword');
Route::patch('user/edit/password/{id}', 'UserController@updatePassword');
Route::get('/user/show', 'UserController@show');
Route::get('/admin/tags', 'TagsController@adminTags');
Route::get('/admin/users', 'UserController@adminIndex');
Route::get('/admin/adverts', 'AdvertsController@adminAdverts');
Route::get('contact', ['as' => 'contact', 'uses' => 'ContactController@create']);
Route::post('contact', ['as' => 'contact_store', 'uses' => 'ContactController@store']);
Route::post('/adverts/message', ['as' => 'contact_advert_store', 'uses' => 'ContactController@advertStore']);
// Route::get('/adverts/{id}', ['as' => 'contact_advert', 'uses' => 'ContactController@advertStore']);
Route::post('/search/', 'AdvertsController@searchAdverts');
//Route::get('/search/', 'AdvertController@searchAdverts');
Route::patch('adverts/expired/{id}', ['as' => 'advert.setExpired', 'uses' => 'AdvertsController@setExpired']);
Route::patch('adverts/available/{id}', ['as' => 'advert.setAvailable', 'uses' => 'AdvertsController@setAvailable']);
});
//Route::group(['middleware' => 'web'], function () {
// Route::auth();
// Route::get('/home', 'HomeController@index');
//});
示例8: function
Route::group(['middleware' => ['web']], function () {
// Profile Routes
Route::get('/profile/{user}', 'ProfileController@show');
Route::post('/user/search', 'UserController@search');
//Album Routes
Route::get('/albums/{album}', 'AlbumController@show');
Route::post('profile/{user}/albums', 'AlbumController@store');
Route::get('/albums/{album}/edit', 'AlbumController@edit');
Route::patch('albums/{album}', 'AlbumController@update');
Route::delete('/albums/{album}', 'AlbumController@delete');
//Comment Routes
Route::post('albums/{album}/comments', 'CommentController@store');
Route::get('/comments/{comment}/edit', 'CommentController@edit');
Route::patch('comments/{comment}', 'CommentController@update');
Route::delete('/comments/{comment}', 'CommentController@delete');
//Like Routes
Route::post('albums/{album}/likes', 'LikeController@store');
Route::delete('/likes/{like}', 'LikeController@unlike');
//Photo Routes
Route::post('uploads/{album}', 'PhotoController@store');
Route::delete('/photos/{photo}', 'PhotoController@delete');
//Settings
Route::get('/settings', 'ProfileController@settings');
Route::patch('/settings/update/{user}', 'ProfileController@updateDetails');
//Image Splash Pages
Route::get('/images/{photo}', 'PhotoController@show');
//Auth
Route::auth();
Route::get('/', 'HomeController@index');
Route::get('/home', 'HomeController@index');
});
示例9: function
Route::get('/tiposProyectos/editar/{tipoProyecto}', 'TiposProyectosController@edit');
Route::post('/tiposProyectos/actualizar/{tipoProyecto}', 'TiposProyectosController@update');
});
Route::group(array('prefix' => 'adminRoot'), function () {
Route::get('/modulos', 'ModuloController@index');
Route::get('/modulos/nuevo', 'ModuloController@create');
Route::post('/modulos', 'ModuloController@store');
Route::get('/modulos/editar/{modulo}', 'ModuloController@edit');
Route::post('/modulos/{modulo}', 'ModuloController@update');
//Importación de catálogos
Route::get('/importar-catalogos', 'ImportaCatalogosController@index');
Route::post('/importar', 'ImportaCatalogosController@importar');
});
Route::get('/proyectos', 'ProyectosController@index');
Route::get('/proyectos/importar', 'ImportarProyectoController@index');
Route::get('/proyectos/upload', 'ImportarProyectoController@postUpload');
Route::post('/proyectos/convertir', 'ImportarProyectoController@convertir');
Route::get('/proyectos/vista-previa', 'ImportarProyectoController@show');
Route::post('/proyectos/importar/', 'ImportarProyectoController@store');
//** Requisiciones **//
Route::group(array('prefix' => 'req', 'before' => 'auth'), function () {
Route::get('/', 'RequisicionController@index');
Route::get('/nueva', 'RequisicionController@create');
Route::post('/store', 'RequisicionController@store');
Route::get('/info/{id}', 'RequisicionController@show');
Route::get('/articulos/agregar/{req_id}', 'ArticulosController@create');
Route::post('/articulos/store', 'ArticulosController@store');
Route::get('/articulos/{articulo}/editar', 'ArticulosController@edit');
Route::patch('/articulos/{articulo}', 'ArticulosController@update');
Route::delete('/articulos/{articulo}', 'ArticulosController@destroy');
});
示例10:
<?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('/', 'HomesController@index');
Route::get('/profile', ['middleware' => 'auth', 'uses' => 'HomesController@profile']);
Route::patch('/profile', ['middleware' => 'auth', 'uses' => 'HomesController@editProfile']);
Route::get('/register', ['middleware' => 'guest', 'uses' => 'Auth\\AuthController@getRegister']);
Route::post('/register', ['middleware' => 'guest', 'uses' => 'Auth\\AuthController@postRegister']);
Route::get('/login', ['middleware' => 'guest', 'uses' => 'Auth\\AuthController@getLogin']);
Route::post('/login', ['middleware' => 'guest', 'uses' => 'Auth\\AuthController@postLogin']);
Route::get('/logout', ['middleware' => 'auth', 'uses' => 'Auth\\AuthController@getLogout']);
Route::resource('users', 'UsersController');
示例11:
//Route::get('/media/{media}/edit', ['as' => 'admin.media.edit' ,'uses' => 'MediaController@edit']);
Route::get('/media/{media_type}/{id}/edit', ['as' => 'media.type.edit', 'uses' => 'MediaController@edit']);
//add form
Route::get('/media/create', ['as' => 'admin.media.create', 'uses' => 'MediaController@selectMediaTypeBeforeCreate']);
Route::get('/media/{media_type}/create', ['as' => 'admin.media.media_type.create', 'uses' => 'MediaController@create']);
//modal views (for ng modal ui)
Route::get('/media/modal_select_media', ['as' => 'api.modal.select.media', 'uses' => 'MediaController@ngTemplateSelectMediaModal']);
//returns ng template view
//index for modal create media
Route::get('/media/modal_create_media', ['as' => 'api.modal.create.media', 'uses' => 'MediaController@ngTemplateSelectMediaCreate']);
//index for modal select mediaLibrary
//returns json object for ng modal view
Route::get('api/media/modal', ['as' => 'api.media.modal', 'uses' => 'MediaController@apiIndex']);
Route::get('api/media/modal/{media_type}', ['as' => 'api.media.modal.type', 'uses' => 'MediaController@apiIndex']);
Route::get('api/media/modaltest/{media_type}', 'MediaController@apiIndexOrder');
//index
Route::get('/media/all/data', ['as' => 'media.index.all.data', 'uses' => 'MediaController@indexAllData']);
#Route::get('/media/all', ['as' => 'media.index.all', 'uses' => 'MediaController@getIndexAll']);
//also used by ng directive form_media)field.html
Route::get('/media', ['as' => 'media.index', 'uses' => 'MediaController@getIndexAll']);
#even uit.. package
#Route::get('/media', ['as' => 'media.index' ,'uses' => 'MediaController@index']);
#Route::get('/media/{media_type}', 'MediaController@index');
//database
Route::post('/media', ['as' => 'media.store', 'uses' => 'MediaController@store']);
Route::patch('/media/{media}', ['as' => 'media.update', 'uses' => 'MediaController@update']);
//Route::put('/media/{media}', ['as' => '', 'uses' => 'MediaController@update']);
Route::delete('/media', ['as' => 'media.destroy.bulk', 'uses' => 'MediaController@destroyBulk']);
Route::delete('/media/{media?}', ['as' => 'media.destroy', 'uses' => 'MediaController@destroy']);
//show uit cms
//Route::get('/media/{media}', ['as' => 'admin.media.show' ,'uses' => 'MediaController@show']);
示例12: view
return view('home');
});
/// SEZGICRAFT HOME ///
Route::get('/sezgicraft', 'HomeController@index');
/// ARTICLES ///
Route::resource('sezgicraft/articles', 'ArticleController');
/// USERS ///
Route::get('sezgicraft/users', 'UserController@users');
Route::get('sezgicraft/users/{name}', 'UserController@show');
Route::post('sezgicraft/users/{name}/pp', 'UserController@uploadTn');
Route::post('sezgicraft/users/{name}/cv', 'UserController@uploadCv');
Route::post('sezgicraft/users/edit-profile/{id}', 'UserController@changeTheme');
/// COMMENTS ///
Route::post('sezgicraft/users/comment', 'CommentController@postComment');
/// PROFILE ///
Route::patch('sezgicraft/users/edit-profile/{id}', 'UserController@update');
Route::get('sezgicraft/users/edit-profile/{id}', 'UserController@editProfile');
/// FRIENDS ///
Route::get('sezgicraft/users/add-friend/{id}', 'FriendController@getAddFriend');
Route::get('sezgicraft/users/remove-friend/{id}', 'FriendController@getRemoveFriend');
/// GALLERY ///
Route::get('sezgicraft/photo-gallery', 'GalleryController@index');
Route::post('sezgicraft/photo-gallery/upload', 'GalleryController@uploadPicture');
Route::get('sezgicraft/video-gallery', 'GalleryController@vidIndex');
Route::post('sezgicraft/video-gallery/upload', 'GalleryController@uploadVideo');
/// APPLY ///
Route::post('sezgicraft/application', 'UserController@apply');
/// ADMIN ///
Route::get('sezgicraft/admin-panel', 'AdminController@index');
Route::get('sezgicraft/admin-panel/disable-user/{id}', 'AdminController@disableUser');
Route::get('sezgicraft/admin-panel/enable-user/{id}', 'AdminController@enableUser');
示例13:
Route::post('events', 'EventsController@store');
Route::get('events/{events}', 'EventsController@show');
Route::get('events/{events}/edit', 'EventsController@edit');
Route::patch('events/{events}', 'EventsController@update');
Route::delete('events/{events}', 'EventsController@destroy');
Route::post('events/{events}/email', 'EventsController@sendMassEmail');
//This is in pagescontroller because of the specific eventrequest that has
//required fields - putting the publish method in pagescontroller gets around this
Route::post('events/{events}/publish', 'PagesController@publish');
Route::post('site/admin/toggleFeatured/{slug}', 'PagesController@siteAdminToggleFeatured');
//This is an event entry form (hence the url) but it's really an Entry method
Route::get('events/{events}/enter', 'EntryController@create');
//Competitions
Route::post('/competition/add', 'CompetitionController@store');
Route::post('/competition/delete/{id}', 'CompetitionController@destroy');
Route::patch('/competition/update/{id}', 'CompetitionController@update');
//Details
Route::post('/detail/add', 'DetailController@store');
Route::post('/detail/delete/{id}', 'DetailController@destroy');
//User pages
Route::get('/user/events', 'PagesController@userEvents');
Route::get('/user/entries', 'PagesController@userEntries');
Route::get('/user/profile', 'PagesController@userProfile');
//Questions
Route::post('/question/add', 'QuestionController@store');
Route::post('/question/delete/{id}', 'QuestionController@destroy');
//Discounts
Route::post('/discount/add', 'DiscountController@store');
Route::post('/discount/delete/{id}', 'DiscountController@destroy');
//Extras
Route::post('/extras/add', 'ExtrasController@store');
示例14: function
|
| This route group applies the "web" middleware group to every route
| it contains. The "web" middleware group is defined in your HTTP
| kernel and includes session state, CSRF protection, and more.
|
*/
/*Route::group(['middleware' => ['web']], function () {
//
});*/
Route::group(['middleware' => 'web'], function () {
Route::auth();
Route::resource('projects', 'ProjectController');
Route::resource('times', 'LoginController');
Route::resource('tasks', 'TaskController');
Route::get('/', 'ProjectController@index');
Route::get('profile', 'UserController@profile');
Route::resource('projects', 'ProjectController');
Route::resource('users', 'UserController');
Route::post('projects/{id}', 'ProjectController@sync');
Route::post('projects/{id}/remove', 'ProjectController@desync');
Route::post('start', 'LoginController@start');
Route::post('stop', 'LoginController@stop');
Route::post('tasks/{id}/create', 'TaskController@store');
Route::patch('projects/{id}/upload', 'ProjectController@uploadPicture');
Route::patch('users/{id}/upload', 'UserController@uploadPicture');
Route::patch('times/{id}/update', 'LoginController@update');
Route::patch('tasks/{id}/update', 'TaskController@update');
Route::post('projects/{id}/update', 'ProjectController@updateSync');
Route::get('projects/{id}/stats', 'ProjectController@stats');
Route::get('users/{id}/archive/{year}/{month}', 'UserController@archive');
});
示例15: function
/**
* Facebook signup and authentication
*/
Route::post('facebook', 'FacebookController@index');
/**
* Email
*/
Route::get('email', 'EmailController@getEmail')->middleware('auth');
Route::post('email/allow-change', 'EmailController@allowEmailChange')->middleware('throttle:2,1');
Route::patch('email/change', 'EmailController@changeEmail');
/**
* Password
*/
Route::patch('password/change', 'PasswordController@changePassword')->middleware('auth');
Route::post('password/allow-recovery', 'PasswordController@allowPasswordRecovery')->middleware('throttle:2,1');
Route::patch('password/recover', 'PasswordController@recoverPassword');
/**
* Async validation
*/
Route::post('validate/uniqueness', 'AsyncValidationController@validateUniqueness');
Route::post('validate/email-token', 'AsyncValidationController@validateEmailToken');
});
/**
* Posts
*/
Route::group(['prefix' => 'posts', 'namespace' => 'Post'], function () {
/**
* Get all posts
*/
Route::get('/', 'PostController@index');
/**