illizian/nova-emoji-field-container

A Laravel Nova field.

v0.1.2 2020-10-26 16:04 UTC

This package is auto-updated.

Last update: 2024-10-28 00:32:02 UTC


README

Latest Version on Packagist License

Description

A Laravel Nova field that add's an emoji picker to a sub field.

Demo

Demo

Installation

The package can be installed through Composer.

composer require illizian/nova-emoji-field-container

Usage

Add a \Illizian\NovaEmojiFieldContainer\NovaEmojiFieldContainer, field to your fields, like so:

/* ... */
use \Illizian\NovaEmojiFieldContainer\NovaEmojiFieldContainer;
/* ... */

class Example extends Resource
{
    /* ... */
    public function fields(Request $request)
    {
        return [
            /* ... */
            NovaEmojiFieldContainer::make([
                Textarea::make(__('Message'), 'message'),
            ]),
        ];
    }

License

The MIT License (MIT). Please see License File for more information.