PHPackages                             marshmallow/blogs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. marshmallow/blogs

ActiveLibrary[Framework](/categories/framework)

marshmallow/blogs
=================

This packages add the resources you need to create a simple blog in Nova. This is fully extendable.

5.0.2(11mo ago)03.0k[1 PRs](https://github.com/marshmallow-packages/blogs/pulls)MITPHPPHP ^8.3CI failing

Since May 18Pushed 2w ago1 watchersCompare

[ Source](https://github.com/marshmallow-packages/blogs)[ Packagist](https://packagist.org/packages/marshmallow/blogs)[ Docs](https://github.com/Marshmallow-Development/)[ RSS](/packages/marshmallow-blogs/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (10)Versions (12)Used By (0)

[![alt text](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67 "marshmallow.")](https://camo.githubusercontent.com/f5450f299f5713ce2f04dd5a1ba7ce9960ed4568b3574e4c4ee3cddc75477253/68747470733a2f2f6d617273686d616c6c6f772e6465762f63646e2f6d656469612f6c6f676f2d7265642d3233377834362e706e67)

Laravel Nova Blogs
==================

[](#laravel-nova-blogs)

[![Latest Version on Packagist](https://camo.githubusercontent.com/932ea4a2a83b7c0ace5f9aa9cac43a8f3eeec87eb9eb594839d31c489b69fe93/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d617273686d616c6c6f772f626c6f6773)](https://packagist.org/packages/marshmallow/blogs)[![Total Downloads](https://camo.githubusercontent.com/b51d52c0e8ac2fc5e871d2e767620d6e2c0fcbc0fcbeebb0a0903b99df77ce0e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d617273686d616c6c6f772f626c6f6773)](https://packagist.org/packages/marshmallow/blogs)[![Issues](https://camo.githubusercontent.com/29accf60f3611a367eb9d5aae38560b30e38421d21bf868ee8f622906e5ef113/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f6d617273686d616c6c6f772d7061636b616765732f626c6f6773)](https://github.com/marshmallow-packages/blogs/issues)[![Licence](https://camo.githubusercontent.com/b7f3c17a9e31be0b8e0197424e9af62e36ab7d766890d78322981c3c68c4ce1d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d617273686d616c6c6f772d7061636b616765732f626c6f6773)](https://github.com/marshmallow-packages/blogs)[![PHP Syntax Checker](https://github.com/marshmallow-packages/blogs/actions/workflows/php-syntax-checker.yml/badge.svg?branch=main)](https://github.com/marshmallow-packages/blogs/actions/workflows/php-syntax-checker.yml/badge.svg?branch=main)

This packages add the resources you need to create a simple blog in Nova. This is fully extendable.

Requirements
------------

[](#requirements)

- PHP `^8.3`
- [Laravel Nova](https://nova.laravel.com) `^5.0`

Installation
------------

[](#installation)

### Composer

[](#composer)

You can install the package via composer:

```
composer require marshmallow/blogs
```

### Run the install command

[](#run-the-install-command)

The package ships an install command that publishes the config file, runs the migrations (creating the `blogs` and `blog_tags` tables), generates the `Blog`and `BlogTag` Nova resources, and registers the blog detail and tag routes:

```
php artisan blogs:install
```

### Make sure the routes work

[](#make-sure-the-routes-work)

Create a page in your Nova Pages Resource. This page should have the route name `blog-detail-page`. Create a page in your Nova Pages Resource. This page should have the route name `blog-tag-page`.

Configuration
-------------

[](#configuration)

The config file is published to `config/blogs.php`. Every value can be overridden to swap in your own models, Nova resources and route names.

KeyDefaultDescription`publish_date_format``d M`Date format used by `Blog::dateFormatted()`.`model.blog``Marshmallow\Blogs\Models\Blog`Blog Eloquent model.`model.blog_tags``Marshmallow\Blogs\Models\BlogTag`Blog tag Eloquent model.`model.user``App\Models\User`User model a blog belongs to.`nova.blog_tags``Marshmallow\Blogs\Nova\BlogTag`Nova resource for blog tags.`nova.user``App\Nova\User`Nova resource for the related user.`images.image``[1920, 800]`Dimensions for the main image.`images.overview_image``[500, 280]`Dimensions for the overview image.`images.detail_image``[900, 450]`Dimensions for the detail image.`routes.blog``blog-detail`Route name resolved by `Blog::route()`.`routes.blog_tags``blog-tag`Route name for a tag overview.`page_route_names.blog``blog-detail-page`Nova page route name for blog details.`page_route_names.blog_tags``blog-tag-page`Nova page route name for tag pages.Usage
-----

[](#usage)

Blogs are managed through the generated Nova resources. On the frontend you work with the `Marshmallow\Blogs\Models\Blog` model, which exposes a number of query scopes and helper methods:

```
use Marshmallow\Blogs\Models\Blog;

// Published blogs, newest first.
$blogs = Blog::published()->ordered()->get();

// Apply the ?q= search filter from the current request.
$results = Blog::published()->filtered()->ordered()->get();

// Blogs for a single tag.
$tagged = Blog::tagged($tag)->get();

foreach ($blogs as $blog) {
    $blog->route();          // URL to the blog detail page
    $blog->dateFormatted();  // publish_date in config('blogs.publish_date_format')
    $blog->getImage();       // asset URL, defaults to the overview_image column
    $blog->tag;              // related BlogTag
    $blog->user;             // related user
}
```

The `Blog` model also implements Marshmallow's `Seoable` and sitemap traits, so published blogs are automatically included in the generated sitemap.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Stef](https://marshmallow.dev)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance77

Regular maintenance activity

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity74

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~220 days

Recently: every ~9 days

Total

8

Last Release

331d ago

Major Versions

v1.x-dev → 2.0.02025-07-01

2.0.0 → 5.0.02025-07-23

PHP version history (3 changes)v1.0.0PHP ^7.4|^8.0

v1.x-devPHP ^8.0

5.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/be33d2624e24c516e73892b0929447cc762f3622c024ab8d0d2a59042e5d2c7f?d=identicon)[marshmallow](/maintainers/marshmallow)

---

Top Contributors

[![stefvanesch](https://avatars.githubusercontent.com/u/46725619?v=4)](https://github.com/stefvanesch "stefvanesch (30 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![LTKort](https://avatars.githubusercontent.com/u/2412670?v=4)](https://github.com/LTKort "LTKort (1 commits)")

---

Tags

laravel blogmarshmallownova blog

### Embed Badge

![Health badge](/badges/marshmallow-blogs/health.svg)

```
[![Health](https://phpackages.com/badges/marshmallow-blogs/health.svg)](https://phpackages.com/packages/marshmallow-blogs)
```

###  Alternatives

[laravel/nova-log-viewer

A Laravel Nova tool for viewing your application logs.

137354.5k1](/packages/laravel-nova-log-viewer)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17878.9k](/packages/markwalet-nova-modal-response)[laravel/nova-pennant

A Pennant Resource Tool for Laravel Nova

23187.5k](/packages/laravel-nova-pennant)[lupennat/nova-nested-many

Laravel Nova - Nested Many

1572.6k](/packages/lupennat-nova-nested-many)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
