alisaleem27/nova-morph-to-create-field

A Laravel Nova field.

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

This package is auto-updated.

Last update: 2024-10-01 00:14:56 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.