Download the PHP package guillaumeferron/post-content without Composer
On this page you can find all versions of the php package guillaumeferron/post-content. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download guillaumeferron/post-content
More information about guillaumeferron/post-content
Files in guillaumeferron/post-content
Package post-content
Short Description A post content builder field for Laravel Nova.
License MIT
Informations about the package post-content
Laravel Nova / Post Content
This package adds a custom field to nova resources.
The field is a post content writer and supports images, videos, paragraphs and carousels.
How it works
This package adds orderable rows:
Currently this package only supports :
- Plain text paragraphs.
- Url-provided images.
- Url-provided videos (Youtube | Vimeo | Server Storage).
- Images / Videos carousels.
Installation and usage
You may require this package using composer:
You can directly use the PostContent in the methods by relating it to a longText SQL attribute:
Customization
You can customize the field behavior :
withFields
Choose the fields to be added as new rows
| Function | Type | Default | Values |
|---|---|---|---|
| ->withFields(options) | Array | ['text', 'image', 'video', 'carousel'] | {'text', 'image', 'video', 'carousel'} |
withCarouselFields
Choose the fields to be added as new carousel's slides
| Function | Type | Default | Values |
|---|---|---|---|
| ->withCarouselFields([options]) | Array | ['image', 'video'] | {'image', 'video'} |
withFileManager
Specify the file manager url if it exists. Recommendation: Nova FileManager
| Function | Type | Default |
|---|---|---|
| ->withFileManager('url') | String | '' |
hideHelpers
Hide the blue background helpers displayed when a row needs to be filled
Roadmap
- [ ] Make the initial row dynamic depending on what fields are specified or not.
- [ ] Make the paragraphs' text editor WYSIWYG.
- [ ] Add the two columns options to the paragraphs.
License
The MIT License (MIT). Please see License File for more information.