PHPackages                             syhcode/field-note - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. syhcode/field-note

ActiveLibrary[Database &amp; ORM](/categories/database)

syhcode/field-note
==================

a laravel database file note

v0.0.1(5y ago)03MITPHPPHP &gt;=5.5.9

Since Jul 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/vorfreudeCode/fieldnote)[ Packagist](https://packagist.org/packages/syhcode/field-note)[ Docs](https://github.com/vorfreudeCode/tpModelFilter)[ RSS](/packages/syhcode-field-note/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

介绍
==

[](#介绍)

一个基于laravel，方便数据库字段类型说明的拓展

用法
==

[](#用法)

使用composer导入包。

```
composer require syhcode/field-note
```

在 Laravel 5.5 或以上，服务提供商将自动获得注册。 在旧版本的框架中，只需在 `config/app.php` 文件中添加服务提供者即可。

```
'providers' => [
    // ...
    FileNote\NoteServiceProvider::class,
];
```

发布迁移。

```
php artisan vendor:publish --provider="FileNote\NoteServiceProvider"

```

创建表字段说明表。

```
php artisan migrate

```

在model使用`use`引用`NoteTrait`，可添加 `$note_fields` 为默认预加载的类型说明的字段。

```
