alisaleem27/nova-morph-to-create-field

A Laravel Nova field.

Maintainers

Package info

github.com/alisaleem27/nova-morph-to-create-field

Language:Vue

pkg:composer/alisaleem27/nova-morph-to-create-field

Statistics

Installs: 384 639

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v1.0.4 2023-10-02 17:22 UTC

This package is auto-updated.

Last update: 2026-03-01 00:41:03 UTC


README

This Laravel Nova package a MorphTo field that does not allow selecting previously created resources.

Installation

Install the package in to a Laravel app that uses Nova via composer:

composer require alisaleem27/nova-morph-to-create-field

Usage

use AliSaleem\MorphToCreateField\MorphToCreate;

class MyResource extends Resource
{
    //...
    
    public function fields(NovaRequest $request)
    {
        return [
            MorphToCreate::make('...')
                ->types(['...']),
        ];
    }
}

License

Nova Dependable Panel is open-sourced software licensed under the MIT license.