Skip to content

Instantly share code, notes, and snippets.

@FrankFlow
Last active January 27, 2019 18:35
Show Gist options
  • Select an option

  • Save FrankFlow/00775d85b60d701c13381c6eccf5c696 to your computer and use it in GitHub Desktop.

Select an option

Save FrankFlow/00775d85b60d701c13381c6eccf5c696 to your computer and use it in GitHub Desktop.
<?php
// access route names as tenant.account.profile.* e.g. tenant.account.profile.edit
// access route path as account/profile/* e.g. account/profile/edit
Route::group(['prefix' => 'profile'], function () {
Route::get('/', 'ProfileController@edit')->name('profile.edit'); // show profile edit form
Route::patch('/', 'ProfileController@update')->name('profile.update'); // edit profile
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment