Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tremby/laravel-db-shell-command
Add an Artisan command, db:shell, which invokes a database shell on a configured database connection
https://github.com/tremby/laravel-db-shell-command
Last synced: about 1 month ago
JSON representation
Add an Artisan command, db:shell, which invokes a database shell on a configured database connection
- Host: GitHub
- URL: https://github.com/tremby/laravel-db-shell-command
- Owner: tremby
- Created: 2015-03-03T21:50:36.000Z (almost 10 years ago)
- Default Branch: main
- Last Pushed: 2020-06-17T20:34:31.000Z (over 4 years ago)
- Last Synced: 2024-11-18T10:01:53.480Z (about 2 months ago)
- Language: PHP
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Database shell command
======================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][l4] and the `v1.*` line of tags.[l4]: https://github.com/tremby/laravel-db-shell-command/tree/laravel4
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.