PHPackages                             van-ons/laraberg-nova - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. van-ons/laraberg-nova

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

van-ons/laraberg-nova
=====================

A Laravel Nova field.

v1.0.0-rc6(4y ago)1300[1 issues](https://github.com/VanOns/laraberg-nova/issues)[7 PRs](https://github.com/VanOns/laraberg-nova/pulls)MITPHPPHP &gt;=7.1.0CI passing

Since Dec 7Pushed 11mo ago8 watchersCompare

[ Source](https://github.com/VanOns/laraberg-nova)[ Packagist](https://packagist.org/packages/van-ons/laraberg-nova)[ RSS](/packages/van-ons-laraberg-nova/feed)WikiDiscussions main Synced 4w ago

READMEChangelogDependencies (2)Versions (14)Used By (0)

[![Social card of Laraberg Nova](art/social-card.svg)](art/social-card.svg)

Laraberg Nova
=============

[](#laraberg-nova)

A Nova field for Laraberg.

Quick start
-----------

[](#quick-start)

### Requirements

[](#requirements)

DependencyMinimum versionPHP8.1Laravel Nova4.35### Installation

[](#installation)

Install via Composer:

```
composer require van-ons/laraberg-nova
```

Publish Laraberg files:

```
php artisan vendor:publish --provider="VanOns\Laraberg\LarabergServiceProvider"
```

Laraberg provides a CSS file that should be present on the page you want to render content on:

```

```

### Usage

[](#usage)

Simply register the field in your Resource:

```
LarabergNova::make(__('Content'), 'content')
```

Add the `RendersContent` trait to your model. And optionally define the `$contentColumn` property to point to the column that holds your Laraberg content, this defaults to `content`.

```
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use VanOns\Laraberg\Traits\RendersContent;

class Post extends Model
{
    use HasFactory, RendersContent;

    protected $contentColumn = 'content';

    ...
}
```

Call the render method on your model in a template:

```
{!! $model->render() !!}
```

#### Options

[](#options)

The field has a few options you can configure.

##### Height

[](#height)

You can customize the height of the editor:

```
LarabergNova::make(__('Content'), 'content')->height(600)
```

##### Attachments

[](#attachments)

You can enable uploading attachments:

```
LarabergNova::make(__('Content'), 'content')->withFiles('public')
```

You will need to add the following migration to make this work:

```
Schema::create('laraberg_nova_pending_attachments', function (Blueprint $table) {
    $table->increments('id');
    $table->string('draft_id')->index();
    $table->string('attachment');
    $table->string('disk');
    $table->timestamps();
});

Schema::create('laraberg_nova_attachments', function (Blueprint $table) {
    $table->increments('id');
    $table->string('attachable_type');
    $table->unsignedInteger('attachable_id');
    $table->string('attachment');
    $table->string('disk');
    $table->string('url')->index();
    $table->timestamps();
    $table->index(['attachable_type', 'attachable_id']);
});
```

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

[](#contributing)

Please see [contributing](CONTRIBUTING.md) for more information about how you can contribute.

Changelog
---------

[](#changelog)

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

Upgrading
---------

[](#upgrading)

Please see [upgrading](UPGRADING.md) for more information about how to upgrade.

Security
--------

[](#security)

Please see [security](SECURITY.md) for more information about how we deal with security.

Credits
-------

[](#credits)

We would like to thank the following contributors for their contributions to this project:

- [All Contributors](../../contributors)

License
-------

[](#license)

The scripts and documentation in this project are released under the [MIT License](LICENSE.md).

---

 [ ![Logo of Van Ons](https://camo.githubusercontent.com/f233e4b012f8d6bded619dbeb286cf4d9c5fbe2789456e8c4495d3c0fae66b1f/68747470733a2f2f6f70656e736f757263652e76616e2d6f6e732e6e6c2f66696c65732f636f772e706e67) ](https://van-ons.nl/)

###  Health Score

22

—

LowBetter than 23% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 86% 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 ~7 days

Recently: every ~0 days

Total

6

Last Release

1576d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ad84a5c4c4e1873137925fd52c8e0388076791672018519c404c2c53bd086e2?d=identicon)[mauricewijnia](/maintainers/mauricewijnia)

---

Top Contributors

[![mauricewijnia](https://avatars.githubusercontent.com/u/8679682?v=4)](https://github.com/mauricewijnia "mauricewijnia (37 commits)")[![dnwjn](https://avatars.githubusercontent.com/u/57711725?v=4)](https://github.com/dnwjn "dnwjn (5 commits)")[![merlijnvanlent](https://avatars.githubusercontent.com/u/10158014?v=4)](https://github.com/merlijnvanlent "merlijnvanlent (1 commits)")

---

Tags

laravelnova

### Embed Badge

![Health badge](/badges/van-ons-laraberg-nova/health.svg)

```
[![Health](https://phpackages.com/badges/van-ons-laraberg-nova/health.svg)](https://phpackages.com/packages/van-ons-laraberg-nova)
```

###  Alternatives

[optimistdigital/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2872.1M6](/packages/optimistdigital-nova-sortable)[outl1ne/nova-sortable

This Laravel Nova package allows you to reorder models in a Nova resource's index view using drag &amp; drop.

2861.8M9](/packages/outl1ne-nova-sortable)[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[digital-creative/conditional-container

Provides an easy way to conditionally show and hide fields in your Nova resources.

116593.8k4](/packages/digital-creative-conditional-container)[sbine/route-viewer

A Laravel Nova tool to view your registered routes.

57215.9k](/packages/sbine-route-viewer)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

14720.0k](/packages/markwalet-nova-modal-response)

PHPackages © 2026

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