PHPackages                             gwd/laravel-nova-flexible-content - 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. gwd/laravel-nova-flexible-content

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

gwd/laravel-nova-flexible-content
=================================

A Laravel Nova field.

0.0.1(7y ago)12.3k1[1 issues](https://github.com/AndreasGJ/laravel-nova-flexible-content/issues)MITVuePHP &gt;=7.1.0

Since Feb 7Pushed 7y agoCompare

[ Source](https://github.com/AndreasGJ/laravel-nova-flexible-content)[ Packagist](https://packagist.org/packages/gwd/laravel-nova-flexible-content)[ RSS](/packages/gwd-laravel-nova-flexible-content/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (3)Used By (0)

Laravel nova field: Flexible content
====================================

[](#laravel-nova-field-flexible-content)

This is a Laravel Nova field which makes it possible to do a flexible setup field, which can be controlled within 1 `json` column in a model.

You can install the field by running the following command:

`composer require gwd/laravel-nova-flexible-content`

Then open the nova resource which should use have the Flexible content field.

[![Screenshot of Laravel Nova Flexible Field](./screenshot.jpg)](./screenshot.jpg)

What is required in the Resource?
---------------------------------

[](#what-is-required-in-the-resource)

Its very important that the resource have a column which of type `json` and the field is casts to array:

```
class ... extends Migration
{
   public function up()
   {
      Schema::create('posts', function (Blueprint $table) {
            $table->increments('id');
            $table->json('flexible')->nullable(); // This field

            $table->timestamps();
        });
   }
}

```

And then in the Model:

```
class Post extends Model
{
    protected $casts = [
        'flexible' => 'array'
    ];
}

```

Then you can use the Flexible content field, by doing the following setup:

```
use Gwd\FlexibleContent\FlexibleContent;

class Post extends Resource
{
   ...
   public function fields(Request $request)
   {
       return [
            FlexibleContent::make('Flexible')
                ->addLayout(
                [
                    'label' => 'Full screen image',
                    'name' => 'full_image',
                    'fields' => [
                        [
                            'type' => 'text',
                            'name' => 'title',
                            'placeholder' => 'Enter a title here',
                            'required' => true
                        ],
                        [
                            'type' => 'image',
                            'name' => 'image',
                            'label' => 'Image',
                            'multiple' => false,
                            'required' => true
                        ]
                    ]
             ])
       ];
   }
}

```

In the above example you get the following output in the flexible column:

```
[
  {
    "data": {
      "title": "This is a title",
      "image": "IMAGE-PATH-HERE",
    },
    "type": "full_image"
  }
]

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

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

2651d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5539e95c5d81bf23ff53c776d9fccbc1630e5b72d7cde2441c4020c8c05f73b4?d=identicon)[AndreasGJ](/maintainers/AndreasGJ)

---

Top Contributors

[![AndreasGJ](https://avatars.githubusercontent.com/u/4068425?v=4)](https://github.com/AndreasGJ "AndreasGJ (8 commits)")

---

Tags

laravelnovanova-field

### Embed Badge

![Health badge](/badges/gwd-laravel-nova-flexible-content/health.svg)

```
[![Health](https://phpackages.com/badges/gwd-laravel-nova-flexible-content/health.svg)](https://phpackages.com/packages/gwd-laravel-nova-flexible-content)
```

###  Alternatives

[optimistdigital/nova-multiselect-field

A multiple select field for Laravel Nova.

3403.5M7](/packages/optimistdigital-nova-multiselect-field)[inspheric/nova-defaultable

Default values for Nova fields when creating resources and running resource actions.

51174.8k1](/packages/inspheric-nova-defaultable)[murdercode/nova4-tinymce-editor

Boost your Laravel Nova with the TinyMCE editor.

17165.2k](/packages/murdercode-nova4-tinymce-editor)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

11229.2k](/packages/datomatic-nova-detached-actions)[ferdiunal/nova-editable-field

A Laravel Nova package to make fields editable.

104.6k](/packages/ferdiunal-nova-editable-field)[wemersonrv/input-mask

A Laravel Nova custom field text with masks on input

1196.4k](/packages/wemersonrv-input-mask)

PHPackages © 2026

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