outhebox/nova-belongs-to-field

A Laravel Nova Override BelongsTo field.

v1.0 2018-11-16 23:06 UTC

This package is auto-updated.

Last update: 2020-08-17 03:20:45 UTC


README

Description

This field override the default nova BelongsTo Field to fix Eager Loading issue

Requrements

  • Laravel 5.6+ with Nova.

Installation

This package can be installed through Composer.

composer require outhebox/nova-belongs-to-field

Example Usage

Add the field to your resource in the fields method:

use Outhebox\NovaBelongsToField\BelongsToField;

BelongsToField::make('Post')
    ->searchable()
    ->sortable(),

License

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