I found this answer which says to do like this:
$columns = Schema::getColumnListing('users');
But it doesnt say what to use, but I suppose it should be:
use Illuminate\Database\Schema\Builder as Schema;
But when I try it it doesnt work:
$columns = Schema::getColumnListing("users");
I get error:
Non-static method Illuminate\Database\Schema\Builder::getColumnListing() should not be called statically, assuming $this from incompatible context