Check database credentials using tinker in a laravel 6.x application
To run tinker:
php artisan tinker
Then run:
DB::select('SHOW TABLES');