Skip to content

Enhance blog with new image assets and posts on frameworks - #4

Merged
roble merged 4 commits into
mainfrom
dev-v2
Jun 8, 2026
Merged

Enhance blog with new image assets and posts on frameworks#4
roble merged 4 commits into
mainfrom
dev-v2

Conversation

@roble

@roble roble commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

This pull request updates the blog seeding and content to support a new post about Saucebase 2.0's dual frontend framework support, and improves image path organization. The most important changes are the addition of a new blog post and content, refactoring of image paths, and a minor adjustment to blog post lookup logic.

Blog post and content additions:

  • Added a new blog post titled "Vue or React? What about both!" to the BlogDatabaseSeeder, with associated cover image and content file (post-7-vue-and-react.html). [1] [2]

Image path organization:

  • Updated all seeded blog post cover image paths in BlogDatabaseSeeder.php to use the modules/blog/images/ directory instead of images/blog/, improving image organization. [1] [2] [3] [4] [5]

Blog post lookup logic:

  • Modified the BlogController so that uncategorized blog post lookups no longer require category_id to be null, allowing posts with or without a category to be found by slug.

Copilot AI review requested due to automatic review settings June 7, 2026 15:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request updates the Blog module’s seeded content and routing behavior to support a new post about Saucebase 2.0’s dual-framework approach, while also reorganizing cover image paths used during seeding.

Changes:

  • Add a new seeded post (“Vue or React? What about both!”) with corresponding HTML content.
  • Update seeded cover image paths in BlogDatabaseSeeder to use modules/blog/images/....
  • Adjust BlogController::show() so /blog/{slug} resolves posts by slug regardless of whether they have a category.

Reviewed changes

Copilot reviewed 3 out of 9 changed files in this pull request and generated 1 comment.

File Description
src/Http/Controllers/BlogController.php Broadens /blog/{slug} resolution to find posts by slug without requiring category_id to be null.
database/seeders/BlogDatabaseSeeder.php Adds the new seeded post and refactors cover image paths to the new directory structure.
database/seeders/content/post-7-vue-and-react.html Introduces the new post’s HTML content used by the seeder.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

$post = $query->where('category_id', $category->id)->where('slug', $slug)->firstOrFail();
} else {
$post = $query->where('slug', $categoryOrSlug)->whereNull('category_id')->firstOrFail();
$post = $query->where('slug', $categoryOrSlug)->firstOrFail();
@roble
roble merged commit 1e2bf06 into main Jun 8, 2026
8 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants