Category: Laravel, PHP, MySQL, javascript

· November 25, 2020 · ⋆ Laravel For instance, recently, with the release of Laravel v8.16.0, it’s now possible to connect to the project’s databases right from the CLI using an Artisan command. A PR in v8.16.0 has introduced an artisan command php artisan db which is when run can connect to the default database of the project right in the CLI.

Apart from using the default php artisan db which connects to the default database, you can also explicitly specify the connection to connect to a non-default database connection like so.

Artisan command to connect to the database in CLI in Laravel 8.x Throttling submission of form in Laravel Monitor logs in Laravel Telescope in production environment Using MySQL explain for queries in Laravel 8.x Simple and lightweight scaffolding using Breeze in Laravel 8 Artisan command to connect to the database in CLI in Laravel 8.x Why you should always commit the composer.lock file Exciting new features and improvements in PHP 8 Throttling submission of form in Laravel Monitor logs in Laravel Telescope in production environment
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners