line('This will return the name of the connected database, otherwise false'); try { DB::connection()->getPDO(); $this->line(DB::connection()->getDatabaseName()); return 1; } catch (\Exception $e) { return 0; } } }