i am trying to use tinker to check if my database connection is exist how can i do it?
i tried
php artisan tinker
DB::connection('name of database');
thank you
I did solve it in this way
DB::connection()->getPdo();
// in case you have one database connection
you can specific database name ==>
DB::connection('name of database')->getPdo();