adding products

This commit is contained in:
2026-04-09 16:35:18 -06:00
parent 53af097928
commit 0ca7b94cc0
7 changed files with 123 additions and 3 deletions
+7 -2
View File
@@ -1,11 +1,16 @@
<?php
use App\Models\Product;
use Illuminate\Support\Facades\Route;
use Laravel\Fortify\Features;
Route::inertia('/', 'Welcome', [
/*Route::inertia('/', 'Welcome', [
'canRegister' => Features::enabled(Features::registration()),
])->name('home');
])->name('home');*/
Route::get('/', fn () => inertia('Home', [
'products' => Product::all(),
]))->name('home');
Route::middleware(['auth', 'verified'])->group(function () {
Route::inertia('dashboard', 'Dashboard')->name('dashboard');