PHP code example of lizhineng / nova-relation-search

1. Go to this page and download the library: Download lizhineng/nova-relation-search library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lizhineng / nova-relation-search example snippets


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

import LiZhineng\NovaRelationSearch\HandleRelationSearch;

use HandleRelationSearch;

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

...