laravel-nova-fields/gender
最新稳定版本:v1.1.0
Composer 安装命令:
composer require laravel-nova-fields/gender
包简介
A Laravel Nova gender field.
README 文档
README
This package contains a very simple Laravel Nova gender field. It is basically an extended select field, like the native country or timezone fields.
Installation
You can install this package in to a Laravel app that uses Nova via composer:
composer require laravel-nova-fields/gender
To publish the config file to config/laravel-nova-fields-gender.php run:
php artisan vendor:publish --provider="LaravelNovaFields\Gender\FieldServiceProvider"
The contents of this configuration can be modified to modify the various default and extended genders.
Usage
You can use the LaravelNovaFields\Gender\Gender field in your Nova resource:
namespace App\Nova; use LaravelNovaFields\Gender\Gender; // ... class Person extends Resource { // ... public function fields(Request $request) { return [ // ... Gender::make('Gender') ->includeExtended(), // includes extended gender set // ... ]; } }
License
The MIT License (MIT).
统计信息
- 总下载量: 5.35k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-24