edit auth

This commit is contained in:
2026-03-01 13:32:47 +08:00
parent 0d6d28e4ea
commit 7bed529850
8 changed files with 311 additions and 3 deletions

View File

@@ -3,8 +3,13 @@
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\AuthController;
Route::get('/', function () {
return view('welcome');
Route::get('/', [AuthController::class, 'showLogin'])->name('login');
Route::middleware('guest')->group(function () {
Route::get('/register', [AuthController::class, 'showRegister']);
Route::post('/register', [AuthController::class, 'register']);
});
Route::get('/login', [AuthController::class, 'showLogin'])->name('login');