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:
+4
-3
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user