zap/app/Render/BladeRenderer.php

15 lines
246 B
PHP

<?php
namespace App\Render;
use App\Models\Page;
use Illuminate\Support\Facades\Blade;
class BladeRenderer implements Renderer
{
public static function render(Page $p): string
{
return Blade::render($p->content(), []);
}
}