added website

This commit is contained in:
Mark Gregory
2026-09-29 11:05:59 +01:00
parent 10d57df79c
commit 4bbed07291
156 changed files with 16544 additions and 340 deletions
@@ -0,0 +1,14 @@
<?php
namespace App\Http\Controllers;
use App\Models\CmsPage;
final class CmsPageController extends Controller
{
public function show(string $slug)
{
$page = CmsPage::where('slug', $slug)->where('is_published', true)->where(fn ($q) => $q->whereNull('published_at')->orWhere('published_at', '<=', now()))->firstOrFail();
return view('cms.show', compact('page'));
}
}