mirror of
https://github.com/phpmon/website
synced 2025-12-21 03:10:07 +01:00
28 lines
535 B
PHP
28 lines
535 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http;
|
|
|
|
use Illuminate\View\View;
|
|
use League\CommonMark\CommonMarkConverter;
|
|
|
|
final class ReleaseNotesController
|
|
{
|
|
public function __invoke(): View
|
|
{
|
|
$path = public_path('builds/early-access/sponsors/changelog.md');
|
|
|
|
if (! file_exists($path)) {
|
|
abort(404);
|
|
}
|
|
|
|
$content = (new CommonMarkConverter)
|
|
->convert(file_get_contents($path));
|
|
|
|
return view('changelog', [
|
|
'content' => $content,
|
|
]);
|
|
}
|
|
}
|