definicao de layout

This commit is contained in:
2026-02-06 14:37:54 +00:00
parent 872a5bb3ea
commit a4f80c85c2
2686 changed files with 640668 additions and 294 deletions

View File

@@ -1,7 +1,27 @@
<?php
use App\Http\Controllers\ProfileController;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
// Rotas para Guest, sem necessidade de autenticação
Route::middleware('guest')->group(function () {
Route::get('/', function () {
return view('welcome');
});
});
// Rotas para Auth, Necessário autenticação
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');
Route::get('/dashboard', function () {
return view('dashboard');
})->name('dashboard');
});
require __DIR__ . '/auth.php';