think.studio/nova-forms-entries
最新稳定版本:2.3.0
Composer 安装命令:
composer require think.studio/nova-forms-entries
包简介
Nova helper to implement laravel-forms-entries package.
关键字:
README 文档
README
Nova helper to implement laravel-forms-entries package.
| Nova | Package |
|---|---|
| V1 | V1 |
| V4 | V2 |
Installation
Install the package via composer:
composer require think.studio/nova-forms-entries
Usage
use App\Nova\Resource; use App\Nova\Resources\Staff; use App\Nova\Resources\Contact; use NovaFormEntries\FormEntryResource; class FormEntry extends Resource { use FormEntryResource; /** * The model the resource corresponds to. */ public static $model = \FormEntries\Models\FormEntry::class; /** * The single value that should be used to represent the resource when being displayed. */ public static $title = 'name'; /** * The columns that should be searched. * * @var array */ public static $search = [ 'created_at', 'type', 'id', ]; public function senderTypes(): array { return [ Contact::class, Staff::class, ]; } }
Credits
统计信息
- 总下载量: 18
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-09-10