Install Breeze for login and first views based on blade and alpinejs.

This commit is contained in:
2024-11-26 11:01:51 +01:00
parent 2513729840
commit fb5836e7bc
56 changed files with 2019 additions and 9 deletions

View File

@@ -1,11 +1,20 @@
<?php
use App\Http\Controllers\AuthController;
use App\Http\Controllers\ProfileController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});
// Example route for login
Route::get('/login', [AuthController::class, 'login'])->name('login');
Route::get('/dashboard', function () {
return view('dashboard');
})->middleware(['auth', 'verified'])->name('dashboard');
Route::middleware('auth')->group(function () {
Route::get('/profile', [ProfileController::class, 'edit'])->name('profile.edit');
Route::patch('/profile', [ProfileController::class, 'update'])->name('profile.update');
Route::delete('/profile', [ProfileController::class, 'destroy'])->name('profile.destroy');
});
require __DIR__.'/auth.php';