Initial baseline: LaraBlog core with plugin commerce surface.

Captures the current working tree after theme slots, ArticleAccess, and the payment / paid-content plugins so subsequent work has a reviewable git history.
This commit is contained in:
ak
2026-08-12 01:15:38 +08:00
commit 263b98b218
337 changed files with 31393 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<?php
/** @var \Illuminate\Support\Collection|\App\Models\Article[] $articles */
$access = app(\App\Domain\Blog\ArticleAccess::class);
?>
<rss version="2.0">
<channel>
<title>{{ $settings->site_name ?? config('app.name') }}</title>
<link>{{ url('/') }}</link>
<description>{{ $settings->site_description ?? '' }}</description>
<language>{{ app()->getLocale() }}</language>
@foreach($articles as $article)
@php
$decision = $access->resolve($article, null, []);
$body = $access->publicHtml($article, $decision);
@endphp
<item>
<title>{{ $article->title }}</title>
<link>{{ url('/show-'.$article->id.'.shtml') }}</link>
<guid isPermaLink="true">{{ url('/show-'.$article->id.'.shtml') }}</guid>
<pubDate>{{ optional($article->published_at)->toRfc2822String() }}</pubDate>
<description><![CDATA[{!! $body !!}]]></description>
</item>
@endforeach
</channel>
</rss>