Refactor Park model, update routes for parks management, and enhance database migrations for park areas and locations

This commit is contained in:
pacnpal
2025-02-25 14:17:13 -05:00
parent 45f9e45b9a
commit 15b2d4ebcf
12 changed files with 301 additions and 151 deletions

View File

@@ -10,9 +10,16 @@ Route::get('/', function () {
Route::get('/counter', Counter::class);
// Parks routes
Route::get('/parks', function () {
return 'Parks Index';
})->name('parks.index');
Route::get('/parks', \App\Livewire\ParkListComponent::class)->name('parks.index');
Route::get('/parks/create', function () {
return 'Create Park';
})->name('parks.create');
Route::get('/parks/{park}', function () {
return 'Show Park';
})->name('parks.show');
Route::get('/parks/{park}/edit', function () {
return 'Edit Park';
})->name('parks.edit');
// Rides routes
Route::get('/rides', function () {