File: /home/armgroup/libs/routes/account.php
<?php
use Illuminate\Support\Facades\Route;
Route::namespace('Account')->name('account.')->prefix('account')
->middleware(['auth', 'isActive'])->group(function () {
Route::get('/', 'IndexController@index')->name('index');
Route::get('user', 'UserController@edit')->name('user.edit');
Route::patch('user', 'UserController@update')->name('user.update');
Route::get('password', 'PasswordController@edit')->name('password.edit');
Route::get('seller-information', 'SellerInformationController@edit')->name('seller-information.edit');
Route::post('seller-information', 'SellerInformationController@update')->name('seller-information.update');
Route::patch('password', 'PasswordController@update')->name('password.update');
Route::get('mobile/change', 'MobileController@change')->name('mobile.change');
Route::resource('addresses', 'AddressController')->except('show');
Route::resource('tickets', 'TicketController')->except('destroy', 'show', 'store');
Route::resource('comments', 'CommentController')->only('index');
Route::resource('favorites', 'FavoriteController')->only('index', 'destroy');
Route::resource('orders', 'OrderController')->only('index', 'show');
Route::resource('wallets', 'WalletController')->only('index', 'show', 'create');
Route::get('points/exchange', 'PointController@showExchange')->name('points.show-exchange');
Route::resource('points', 'PointController')->only('index', 'show');
});