print database name in laravel code example Example: get database name laravel DB::getDatabaseName();