leo-yi/laravel-fillable 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

leo-yi/laravel-fillable

最新稳定版本:v2.2.2

Composer 安装命令:

composer require leo-yi/laravel-fillable

包简介

A Laravel package that generates php array keys from table fields

README 文档

README

中文文档

Installation

laravel framework require

  • leo-yi/laravel-fillable:^2.0 -> Laravel >= 7.0
  • leo-yi/laravel-fillable:^1.0 -> Laravel ^6.0

You can install the package via composer:

Laravel >= 7.0 :

composer require leo-yi/laravel-fillable --dev

Laravel ^6.0 :

composer require leo-yi/laravel-fillable:1.5 --dev

You can publish the config file with:

php artisan vendor:publish --provider="Leoyi\LaravelFillable\LaravelFillableServiceProvider" --tag="laravel-fillable"

Usage

Default model: only columns

php artisan fillable table_name
'id',
'title',
'age',
'created_at',

First model: columns with table comment

php artisan fillable table_name 1
'id' => 'ID',
'name' => '名称',
'age' => '年龄',
'created_at' => '',

Second model: table comment for array key comment

php artisan fillable table_name 2
'id' => '', // ID
'name' => '', // 名称
'age' => '', // 年龄
'created_at' => '', // 创建时间

Third model: Generates an array of key-value pairs, excluding comments

php artisan fillable table_name 3
'id' => $this->id,
'name' => $this->name,
'age' => $this->age,
'created_at' => $this->created_at,

Third model: Generates an array of key-value pairs, including comments

php artisan fillable table_name 4
'id' => $this->id, // ID
'name' => $this->name, // 名称
'age' => $this->age, // 年龄
'created_at' => $this->created_at, // 创建时间

Fourth mode: model comment for phpstorm

php artisan fillable table_name 5
* @property bigint $id // Id
* @property string $name // 姓名
* @property int $age // 年龄

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 51
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固