feat(blog): integrate Filament blog with public pages#811
Open
vcnainala wants to merge 5 commits into
Open
Conversation
Update the published shield config to the structure required by Shield 4.2 so role editing works again, and exclude dashboard blog resources that are authorized separately from role permissions.
Add stephenjude/filament-blog with RichEditor configuration, blog tables migration, and a seeder for initial author, category, and post.
Extend filament-blog resources on the dashboard panel and gate CRUD access to super_admin, admin, and dev roles at request time.
Expose /blog listing and post detail pages via Livewire on the guest layout, with SEO metadata support and a header navigation link.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## development #811 +/- ##
================================================
- Coverage 6.13% 6.10% -0.03%
- Complexity 1737 1749 +12
================================================
Files 227 230 +3
Lines 8961 9002 +41
================================================
Hits 550 550
- Misses 8411 8452 +41 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Initialize the post property and read banner_url via getAttribute so Level 5 analysis passes for the third-party Post model.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
stephenjude/filament-blog(Filament 4 compatible v5 package line) with RichEditor, migrations forblog_posts/blog_authors/blog_categories, and aBlogSeederfor sample contentsuper_admin,admin, anddevroles at request time (avoidsBlogPluginboot-time auth that prevented navigation from appearing)/bloglisting and/blog/{slug}detail pages via Livewire on the guest layout, plus header navigation and SEO metadata supportconfig/filament-shield.phpto the Filament Shield 4.2 format so role editing works again; blog resources are excluded from Shield because they use separate role gatesTest plan
php artisan migrateand optionallyphp artisan db:seed --class=BlogSeeder/dashboardassuper_admin/admin/devand confirm Blog group (Posts, Categories, Authors) appears/blogand/blog/{slug}and verify listing, prose rendering, and meta tags/control-panel/shield/roles/{id}/editand confirm the permissions form loads without error