This commit is contained in:
Dennis Smink
2020-09-27 19:06:33 +02:00
parent af6e12ca01
commit 0a7b072eeb
20 changed files with 279 additions and 83 deletions

View File

@@ -98,13 +98,15 @@ Route::group(['middleware' => ['auth', 'auth.blocked']], function () {
Route::patch('/', 'ProfileSettingController@update')->name('update');
});
Route::group(['prefix' => 'billing', 'as' => 'billing.'], function () {
Route::get('/', 'ProfileBillingController@index')->name('index');
Route::post('card/update', 'ProfileBillingController@updateCard')->name('update.card');
Route::post('plan/update', 'ProfileBillingController@updatePlan')->name('update.plan');
});
if (config('cashier.key') && config('cashier.secret')) {
Route::group(['prefix' => 'billing', 'as' => 'billing.'], function () {
Route::get('/', 'ProfileBillingController@index')->name('index');
Route::post('card/update', 'ProfileBillingController@updateCard')->name('update.card');
Route::post('plan/update', 'ProfileBillingController@updatePlan')->name('update.plan');
});
}
Route::post('toggle-theme', 'ProfileController@toggleTheme')->name('toggle-theme');
Route::post('request-ftp-password', 'ProfileController@requestFtpPassword')->name('request-ftp-password');