All Projects → dcasia → nova-inline-morph-to

dcasia / nova-inline-morph-to

Licence: MIT license
A Laravel Nova field for displaying morphTo relationship inline.

Programming Languages

PHP
23972 projects - #3 most used programming language
Vue
7211 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to nova-inline-morph-to

nova-hidden-field
A Laravel Nova Hidden field.
Stars: ✭ 32 (+0%)
Mutual labels:  nova, laravel-nova-field
nova-url-field
A URL input and link field for Laravel Nova
Stars: ✭ 96 (+200%)
Mutual labels:  nova, laravel-nova-field
nova-unlayer-field
🦜 Drag’n’drop email builder for Laravel Nova that uses Adds a Laravel Nova field for Unlayer service under the hood.
Stars: ✭ 27 (-15.62%)
Mutual labels:  nova, laravel-nova-field
nova-json-wrapper
Allows you to group Nova fields and merge their output into a single JSON column
Stars: ✭ 14 (-56.25%)
Mutual labels:  nova, laravel-nova-field
nova-file-upload-field
The easiest drag-and-drop file uploading field for Laravel Nova.
Stars: ✭ 53 (+65.63%)
Mutual labels:  nova
readhook
Red-team tool to hook libc read syscall with a buffer overflow vulnerability.
Stars: ✭ 31 (-3.12%)
Mutual labels:  polymorphic
nova-money-field
Money Field for Laravel Nova
Stars: ✭ 71 (+121.88%)
Mutual labels:  nova
nova-relationship-selector
Laravel Nova - Relationship Selector
Stars: ✭ 26 (-18.75%)
Mutual labels:  nova
redundans
Redundans is a pipeline that assists an assembly of heterozygous/polymorphic genomes.
Stars: ✭ 90 (+181.25%)
Mutual labels:  polymorphic
nova-filepond
A Nova field for uploading File, Image and Video using Filepond.
Stars: ✭ 36 (+12.5%)
Mutual labels:  laravel-nova-field
nova-select-plus
A Laravel Nova Select Field
Stars: ✭ 67 (+109.38%)
Mutual labels:  nova
ADMMutate
Classic code from 1999+ I am fairly sure this is the first public polymorphic shellcode ever (best IMHO and others http://ids.cs.columbia.edu/sites/default/files/ccs07poly.pdf :) If I ever port this to 64 or implement a few other suggestions (sorry I lost ppc code version contributed) it will be orders of magnitude more difficult to spot, so I h…
Stars: ✭ 69 (+115.63%)
Mutual labels:  polymorphic
asm-inline
Inline raw ASM instructions in Java
Stars: ✭ 23 (-28.12%)
Mutual labels:  inline
nova-permissions
Add Permissions based authorization for your Nova installation via User-based Roles and Permissions. Roles are defined in the database whereas Permissions are defined in the code base.
Stars: ✭ 115 (+259.38%)
Mutual labels:  nova
typeorm-polymorphic
Typeorm polymorphic relationship management
Stars: ✭ 137 (+328.13%)
Mutual labels:  polymorphic
vue-svg-inline-plugin
Vue plugin for inline replacement of SVG images with actual content of SVG files.
Stars: ✭ 30 (-6.25%)
Mutual labels:  inline
nova-chartjs
A Chart JS component for Laravel Nova
Stars: ✭ 47 (+46.88%)
Mutual labels:  nova
nova-json-schema-field
Laravel Nova field for displaying JSON schema data
Stars: ✭ 27 (-15.62%)
Mutual labels:  nova
nova-phone-number
A Laravel Nova field to format and validate phone numbers.
Stars: ✭ 60 (+87.5%)
Mutual labels:  nova
USERGE-X
USERGE-X. What the X ?
Stars: ✭ 133 (+315.63%)
Mutual labels:  inline

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;
use DigitalCreative\InlineMorphTo\HasInlineMorphToFields;

class Article extends Resource
{
    use HasInlineMorphToFields;

    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,
                         ])
                         ->default(\App\Nova\Text::class),
            ...
        ];

    }
}

Note: You will need to import the HasInlineMorphToFields trait for this field to display correctly within resource detail views.

Code example: adding morphables dynamically from a directory #4

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].