Untitled
unknown
php
a year ago
2.2 kB
2
Indexable
Never
<?php use App\Http\Controllers\Api\v1\Auth\AuthController; use App\Http\Controllers\Developer\Auth\ForgetPasswordController; use App\Http\Controllers\Developer\Auth\ResetPasswordController; use Illuminate\Support\Facades\Auth; use Illuminate\Support\Facades\Route; use App\Http\Controllers\Api\v1\System\SystemController; /* |-------------------------------------------------------------------------- | Web Routes |-------------------------------------------------------------------------- | */ //Route::view('/', 'index')->name('index'); //Route::get('login', [AuthController::class, 'showLoginPage'])->name('login'); //Route::post('login', [AuthController::class, 'login'])->name('login'); // ///*Route::get('registration', [AuthController::class, 'showRegistrationPage'])->name('registration'); //Route::post('registration', [AuthController::class, 'registration'])->name('registration');*/ // //Route::get('forget-password', [ForgetPasswordController::class, 'showLinkRequestForm'])->name('forget.password'); //Route::post('forget-password', [ForgetPasswordController::class, 'sendResetLinkEmail'])->name('password.email'); // //Route::get('/reset-password/{token}', [ResetPasswordController::class, 'showResetForm'])->middleware('guest')->name('password.reset'); //Route::post('/reset-password', [ResetPasswordController::class, 'reset'])->middleware('guest')->name('password.update'); // //Route::group(['middleware' => 'developer'], function (){ // Route::post('logout', [AuthController::class, 'logout'])->name('logout'); // Route::get( 'systems-update', [SystemController::class, 'systemsRoleUpdate'] ); // Route::get( 'storage-link', [SystemController::class, 'storageLink'] ); //}); Auth::routes(['register' => false, 'logout' => false, 'reset' => false, 'verify' => false, 'confirm' => false]); Route::get('/', function () { return redirect('/dashboard'); })->name('dashboard.index'); Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home'); Route::group(['middleware' => ['auth:web', 'checkCookie']], function () { // Route::post('logout', [AuthController::class, 'logout'])->name('web.logout'); });