aqjw/nova-has-one-inject-field

Inject HasOne field in the form between other fields.

v1.0.4 2022-06-29 19:39 UTC

This package is auto-updated.

Last update: 2024-11-21 00:39:45 UTC


README

Latest Version on Packagist Total Downloads

This package inherits the main features of HasOne field and allows it to be injected in the form between other fields.

Requirements

  • PHP 8.0.2+
  • Nova 4+

Screenshots

Detail View

Form View

Installation

This package can be installed via command:

composer require aqjw/nova-has-one-inject-field

Usage

use Aqjw\HasOneInjectField\HasOneInjectField;
...
return [
    ...
    HasOneInjectField::make('Measurement', 'measurement', \App\Nova\Measurement::class),
    ...
];

Warning This is a beta version, so the field may be unstable.

License

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