定制 tremby/laravel-db-shell-command 二次开发

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

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

tremby/laravel-db-shell-command

最新稳定版本:v2.1

Composer 安装命令:

composer require tremby/laravel-db-shell-command

包简介

Add a db:shell command to Laravel which runs a shell for a configured database connection

README 文档

README

Add an Artisan command, db:shell, which invokes a database shell on a configured database connection.

Binaries for the various database shells are expected to be in your path.

Laravel version

This branch and the v2.* line of tags are for Laravel 5. For the Laravel 4 version see the laravel4 branch and the v1.* line of tags.

Installation

Require it in your Laravel project:

composer require tremby/laravel-db-shell-command

Register the service provider in your config/app.php file:

'providers' => [
    ...
    Tremby\DbShellCommand\ServiceProvider::class,
],

Use

A new Artisan command is added; it will be listed in

./artisan list

See the help text for options:

./artisan db:shell --help

To launch a shell for the application's default database (in the current environment), just run

./artisan db:shell

Supported database drivers

  • mysql

Pull requests are welcome for others.

统计信息

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

GitHub 信息

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

其他信息

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