-
Notifications
You must be signed in to change notification settings - Fork 0
/
auth.php
executable file
·28 lines (20 loc) · 1.19 KB
/
auth.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
Route::redirect('/.well-known/change-password', '/settings/password');
Auth::routes(['verify' => true]);
Route::prefix('auth')->group(function () {
Route::get('{provider}', 'Auth\AuthController@redirectToProvider')->name('auth.provider');
Route::get('{provider}/callback', 'Auth\AuthController@handleProviderCallback');
});
Route::middleware(['auth', 'verified'])->group(function () {
Route::prefix('{locale}/settings')->group(function () {
Route::get('account', 'UserController@edit')->name('users.edit');
Route::match(['put', 'patch'], 'account', 'UserController@update')->name('users.update');
Route::get('password', 'UserPasswordController@edit')->name('users.password');
Route::match(['put', 'patch'], 'password', 'UserPasswordController@update')->name('users.password.update');
Route::get('token', 'UserTokenController@edit')->name('users.token');
Route::match(['put', 'patch'], 'token', 'UserTokenController@update')->name('users.token.update');
});
Route::resource('newsletter-subscriptions', 'NewsletterSubscriptionController')->only('store');
});