lizhineng/nova-relation-search

There is no license information available for the latest version (v0.1) of this package.

Handle relation search feature on Nova resource.

v0.1 2020-04-27 10:52 UTC

This package is auto-updated.

Last update: 2024-05-28 16:20:44 UTC


README

Currently, Nova resource doesn't support relation search out of the box, and the package is to give that ability to you.

Installation

You can install the package to your Laravel app by using the following command via Composer.

composer require lizhineng/nova-relation-search

Usage

// in the App/Nova/Post.php
...

import LiZhineng\NovaRelationSearch\HandleRelationSearch;

use HandleRelationSearch;

public static $relatedSearch = [
    'user' => ['name'],
];

...

After the extremely easy setup, now you can go to search your resource and test it, have fun :-)