The Laravel Artisan Cheatsheet now has an API. Learn more.

db

Start a new database CLI session

Options

  • read - Connect to the read connection Optional
  • write - Connect to the write connection Optional

Arguments

  • connection - The database connection that should be used Optional
php artisan db [--read] [--write] [--] [<connection>]