Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Laravel Schema::getColumnListing not returing in a specific table

Tags:

laravel

I'm using \Schema::getColumnListing to get all columns of a table. It works wonders in all tables except one.

This one table is up in the database, it's model it's working like a charm but when I call \Schema::getColumnListing it shows and empty array.

How can this be solved?

like image 494
pihh-rocks Avatar asked Dec 05 '25 09:12

pihh-rocks


1 Answers

DB::getSchemaBuilder()->getColumnListing('table');
like image 126
Arminius Avatar answered Dec 07 '25 11:12

Arminius