updates for admin area

This commit is contained in:
Mark Gregory
2026-09-12 21:18:19 +01:00
parent ab3134de13
commit 5e2f4a1fa7
42 changed files with 894 additions and 210 deletions
@@ -0,0 +1,16 @@
<?php
namespace App\Http\Controllers;
use App\Models\ContentPage;
use Illuminate\View\View;
class ContentPageController extends Controller
{
public function show(ContentPage $page): View
{
abort_unless($page->status === 'published' && ($page->published_at === null || $page->published_at->isPast()), 404);
return view('content.show', compact('page'));
}
}