lizhineng / nova-relation-search
该包最新版本(v0.1)没有提供许可证信息。
处理Nova资源中的关系搜索功能。
v0.1
2020-04-27 10:52 UTC
Requires
- laravel/nova: ~3.0
Requires (Dev)
- orchestra/testbench: ^5.1
- phpunit/phpunit: ^9
This package is auto-updated.
Last update: 2024-09-28 16:57:07 UTC
README
目前,Nova资源默认不支持关系搜索,该包旨在为您提供这一功能。
安装
您可以使用以下Composer命令将包安装到您的Laravel应用中。
composer require lizhineng/nova-relation-search
用法
// in the App/Nova/Post.php ... import LiZhineng\NovaRelationSearch\HandleRelationSearch; use HandleRelationSearch; public static $relatedSearch = [ 'user' => ['name'], ]; ...
经过极其简单的设置后,现在您可以搜索您的资源并进行测试,祝您玩得开心 :-)