Install breeze component for auth;

Training
This commit is contained in:
2024-01-20 18:51:50 +01:00
parent 2b6cd00ece
commit fcc061aeba
62 changed files with 4400 additions and 124 deletions

View File

@@ -1,5 +1,7 @@
<?php
use App\Http\Controllers\ProfileController;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
/*
@@ -16,3 +18,38 @@ use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});
Route::prefix('test')->group(function () {
Route::get('/{name?}', function (?string $name = null) {
return $name ?? 'niente';
})->whereAlpha('name');
Route::get('/{number}', function (int $number = null) {
return $number;
})->whereNumber('number');
});
Route::get('/pippo', function (Request $request) {
return response()->json([
'name' => 'Abigail',
'state' => 'CA',
]);
});
Route::view('/prova','test')->name('prova');
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';