DEV Community

Khandokar Nafis Jaman
Khandokar Nafis Jaman

Posted on

Check database information by laravel command...

If you want to see the details of your database, you just need to type this on your terminal:

php artisan db:show
Enter fullscreen mode Exit fullscreen mode

It will show the basic configuration of your database which is attached on your projects. As well as, you can see total number of tables and connections.
Now, you may have more than one database connected with your projects. If you wanna see a certain database details, you need to type

php artisan db:show --database=sqlite
Enter fullscreen mode Exit fullscreen mode

or

php artisan db:show --database=pgsql
Enter fullscreen mode Exit fullscreen mode

Thanks. Happy coding!!

Top comments (0)