PHPackages                             razorsheep/blueprint-nova-addon - 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. razorsheep/blueprint-nova-addon

ActiveLibrary

razorsheep/blueprint-nova-addon
===============================

0.0.1(2y ago)04MITPHP

Since May 15Pushed 2y agoCompare

[ Source](https://github.com/Razorsheep/blueprint-nova-addon)[ Packagist](https://packagist.org/packages/razorsheep/blueprint-nova-addon)[ Docs](https://github.com/naoray/blueprint-nova-addon)[ GitHub Sponsors](https://github.com/Naoray)[ RSS](/packages/razorsheep-blueprint-nova-addon/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

Blueprint Nova Addon
====================

[](#blueprint-nova-addon)

[![Build Status](https://camo.githubusercontent.com/862624c1d19b855aec13b5c05e2645e5b69a5816dcb525ef7e52212876bc3620/68747470733a2f2f7472617669732d63692e6f72672f4e616f7261792f626c75657072696e742d6e6f76612d6164646f6e2e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/862624c1d19b855aec13b5c05e2645e5b69a5816dcb525ef7e52212876bc3620/68747470733a2f2f7472617669732d63692e6f72672f4e616f7261792f626c75657072696e742d6e6f76612d6164646f6e2e7376673f6272616e63683d6d6173746572)[![Total Downloads](https://camo.githubusercontent.com/4f9751c292279d4e2e74a980b882b145f0d858fb60aea494185728674a80a245/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e616f7261792f626c75657072696e742d6e6f76612d6164646f6e2e7376673f7374796c653d666c6174)](https://packagist.org/packages/naoray/blueprint-nova-addon)

📣 Shoutout to [Jason McCreary](https://github.com/jasonmccreary) whose [Blueprint](https://github.com/laravel-shift/blueprint) package lays the groundwork for this small addon. Thank you Jason 🙌

Installing this addon will allow you to generate your Nova resources with the `php artisan blueprint:build` command.

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

[](#installation)

You can install this package and **Blueprint** via composer:

```
composer require --dev naoray/blueprint-nova-addon
```

> ⚠️ You need to have [laravel nova](https://nova.laravel.com/) installed in order for the resource generation to take place!

Usage
-----

[](#usage)

Refer to [Blueprint's Basic Usage](https://github.com/laravel-shift/blueprint#basic-usage) to get started. Afterwards you can run the `blueprint:build` command to generate Nova resources automatically. To get an idea of how easy it is you can use the example `draft.yaml` file below.

```
# draft.yaml
models:
  Post:
    author_id: id foreign:users
    title: string:400
    content: longtext
    published_at: nullable timestamp
    relationships:
      HasMany: Comment

  Comment:
    post_id: id foreign
    content: longtext
    published_at: nullable timestamp
```

From these 13 lines of YAML, this addon will generate 2 Nova resources which are pre-filled with 14 fields.

```
// App/Nova/Comment.php
public function fields(Request $request)
{
    return [
        ID::make()->sortable(),

        Textarea::make('Content')
            ->rules('required', 'string'),

        DateTime::make('Published at'),

        BelongsTo::make('Post'),

        DateTime::make('Created at'),
        DateTime::make('Updated at'),
    ];
}

// App/Nova/Post.php
public function fields(Request $request)
{
    return [
        ID::make()->sortable(),

        Text::make('Title')
            ->rules('required', 'string', 'max:400'),

        Textarea::make('Content')
            ->rules('required', 'string'),

        DateTime::make('Published at'),

        BelongsTo::make('Author', 'author', User::class),

        HasMany::make('Comments'),

        DateTime::make('Created at'),
        DateTime::make('Updated at'),
    ];
}
```

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

[](#configuration)

You may publish the configuration with the following command:

```
php artisan vendor:publish --tag=nova_blueprint
```

### Timestamp fields

[](#timestamp-fields)

To disable the generation of `timestamp` fields for all Nova resources set this option to `false`.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Krishan König](https://github.com/naoray)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 71.8% 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

Unknown

Total

1

Last Release

1092d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a6b4cb3e4d03670d03a25dc60539cda7cd8b29dbfde9bfeb72854db8c227753?d=identicon)[Roksonne](/maintainers/Roksonne)

---

Top Contributors

[![Naoray](https://avatars.githubusercontent.com/u/10154100?v=4)](https://github.com/Naoray "Naoray (61 commits)")[![wotta](https://avatars.githubusercontent.com/u/13332240?v=4)](https://github.com/wotta "wotta (11 commits)")[![jyrkidn](https://avatars.githubusercontent.com/u/2447042?v=4)](https://github.com/jyrkidn "jyrkidn (8 commits)")[![AbdullahiAbdulkabir](https://avatars.githubusercontent.com/u/33360580?v=4)](https://github.com/AbdullahiAbdulkabir "AbdullahiAbdulkabir (2 commits)")[![Razorsheep](https://avatars.githubusercontent.com/u/459217?v=4)](https://github.com/Razorsheep "Razorsheep (2 commits)")[![algethamy](https://avatars.githubusercontent.com/u/9952761?v=4)](https://github.com/algethamy "algethamy (1 commits)")

---

Tags

naorayblueprint-nova-addon

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/razorsheep-blueprint-nova-addon/health.svg)

```
[![Health](https://phpackages.com/badges/razorsheep-blueprint-nova-addon/health.svg)](https://phpackages.com/packages/razorsheep-blueprint-nova-addon)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k43.5M5.2k](/packages/larastan-larastan)[laravel/folio

Page based routing for Laravel.

608453.9k27](/packages/laravel-folio)[illuminate/bus

The Illuminate Bus package.

6043.8M409](/packages/illuminate-bus)[illuminate/routing

The Illuminate Routing package.

1238.6M2.3k](/packages/illuminate-routing)[naoray/blueprint-nova-addon

7123.2k](/packages/naoray-blueprint-nova-addon)[laragear/preload

Effortlessly make a Preload script for your Laravel application.

119363.5k](/packages/laragear-preload)

PHPackages © 2026

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