feat:implement auth routes and controllers

This commit is contained in:
2026-08-15 14:37:30 +03:30
parent a79789c2da
commit 996a68d3b2
7 changed files with 214 additions and 186 deletions
+26
View File
@@ -0,0 +1,26 @@
<?php
use App\Http\Controllers\Auth\LoginController;
use App\Http\Controllers\Auth\LogoutController;
use App\Http\Controllers\Auth\RegisterController;
use Illuminate\Support\Facades\Route;
Route::prefix('auth')->name('auth.')->group(function () {
Route::middleware('guest:web')->group(function () {
Route::prefix('register')->name('register.')->controller(RegisterController::class)->group(function () {
Route::get('/', 'index')->name('index');
Route::post('/', 'post')->name('post');
});
Route::prefix('login')->name('login.')->controller(LogInController::class)->group(function () {
Route::get('/', 'index')->name('index');
Route::post('/', 'post')->name('post');
});
});
Route::get('logout', [LogoutController::class, 'index'])->middleware('auth:web')->name('logout.index');
});