Add first pass of the web interface: Sites index + detail, via Livewire

Home page is now a Livewire-powered, searchable/paginated Site list
(search by domain) instead of the stock Laravel welcome page. Clicking
a site goes to a plain controller-rendered detail page listing its
pages. Shared layout at resources/views/components/layouts/app.blade.php.
This commit is contained in:
m105
2026-07-22 21:16:17 +03:00
parent 4dd5a3c17d
commit f15eb5aec1
10 changed files with 1876 additions and 228 deletions
+4 -3
View File
@@ -1,7 +1,8 @@
<?php
use App\Http\Controllers\SiteController;
use App\Livewire\Sites\Index as SitesIndex;
use Illuminate\Support\Facades\Route;
Route::get('/', function () {
return view('welcome');
});
Route::get('/', SitesIndex::class)->name('sites.index');
Route::get('/sites/{site}', [SiteController::class, 'show'])->name('sites.show');