A post content builder field for Laravel Nova.
guillaumeferron/post-content is a Laravel package for a post content builder field for laravel nova..
It currently has 22 GitHub stars and 3.991 downloads on Packagist (latest version 1.1.0).
Install it with composer require guillaumeferron/post-content.
Discover more Laravel packages by guillaumeferron
or browse all Laravel packages to compare alternatives.
Last updated
This package adds a custom field to nova resources.
The field is a post content writer and supports images, videos, paragraphs and carousels.

This package adds orderable rows:
Currently this package only supports :
You may require this package using composer:
composer require guillaumeferron/post-content
You can directly use the PostContent in the fields() methods by relating it to a longText SQL attribute:
PostContent::make('attribute_name')
You can customize the field behavior :
PostContent::make('attribute_name')->withFields([options])
Choose the fields to be added as new rows
| Function | Type | Default | Values | |-----------------------|--------|----------------------------------------|----------------------------------------| | ->withFields(options) | Array | ['text', 'image', 'video', 'carousel'] | {'text', 'image', 'video', 'carousel'} |
PostContent::make('attribute_name')->withCarouselFields([options])
Choose the fields to be added as new carousel's slides
| Function | Type | Default | Values | |-----------------------|--------|----------------------------------------|----------------------------------------| | ->withCarouselFields([options]) | Array | ['image', 'video'] | {'image', 'video'} |
PostContent::make('attribute_name')->withFileManager('url')
Specify the file manager url if it exists. Recommendation: Nova FileManager
| Function | Type | Default | |-----------------------|--------|----------------------------------------| | ->withFileManager('url') | String | '' |
PostContent::make('attribute_name')->hideHelpers()
Hide the blue background helpers displayed when a row needs to be filled
The MIT License (MIT). Please see License File for more information.