tremby / laravel-db-shell-command
Add a db:shell command to Laravel which runs a shell for a configured database connection
Installs: 1 817
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Requires
- laravel/framework: ~5.0
This package is auto-updated.
Last update: 2024-12-18 06:08:21 UTC
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.