<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::group([
    'middleware' => 'guest',
], function () {
    // Register the typical reset password routes for an application.
    Route::post('password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email');
    Route::post('password/reset', 'Auth\ResetPasswordController@reset')->name('password.update');
    Route::get('password/reset/{token}', 'IndexController@index')->name('password.reset');

});
// Register the typical email verification routes for an application.
Route::get('email/verify', 'IndexController@index')->name('verification.notice');
Route::get('email/verify/{id}', 'Auth\VerificationController@verify')->name('verification.verify');
Route::post('email/resend/{id}', 'Auth\VerificationController@resend')->name('verification.resend');

Route::get('/{any}', 'IndexController@index')->where('any', '.*')->name('index');


Route::get('/debug-sentry', function () {
    throw new Exception('My first Sentry error!');
});
