Skip to content

dcasia/nova-inline-morph-to

Repository files navigation

Nova Inline MorphTo Field

Latest Version on Packagist Total Downloads License

Laravel Nova Inline MorphTo Field in action

Install

composer require digital-creative/nova-inline-morph-to

Usage

The signature is the same as the default MorphTo field that ships with Nova.

use DigitalCreative\InlineMorphTo\InlineMorphTo;

class Article extends Resource
{
    public function fields(Request $request)
    {
        return [
            ...
            InlineMorphTo::make('Template')->types([
                \App\Nova\Video::class,
                \App\Nova\Image::class,
                \App\Nova\Text::class,
                \App\Nova\Gallery::class,
            ]),
            ...
        ];

    }
}

License

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

About

A Laravel Nova field for displaying morphTo relationship inline.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy