定制 laravellegends/interactive-model 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

laravellegends/interactive-model

Composer 安装命令:

composer require laravellegends/interactive-model

包简介

This library is helpful to record data in the Eloquent models interactively via the command line.

README 文档

README

This is a Laravel package to help you to record data in the Eloquent models interactively via the command line.

Instalation

Now, run in terminal:

composer require laravellegends/interactive-model

Usage examples

Example:

php artisan model:interactive User

or

php artisan model:interactive App\\Models\\User
Type the "name" value:
> Wallace Maxters

Type the "email" value:
> wallacemaxters@test.com

Type the "password" value:
> [automatic hidden]

Data inserted in table users

This command assume that your models is placed in App\Models namespace by default, if you not passed full namespace as argument.

The data asked to fill should be defined in $fillable in your model. For fields placed in $hidden, the prompt is automatically hidden.

Example:

namespace App\Models;

class User extends Model
{
    protected $fillable = ['name', 'email', 'password'];

    protected $hidden = ['password'];
}

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固