4 weeks ago

Printing table without knowing column names?

Posted 4 weeks ago by andyandy

I want to do this.

$randomTable = Articles::orderBy('id', 'desc')->get();

@forelse($randomTable as $item)


no results

But I want it to auto-detect all columns in table. And print out all available columns.

Please sign in or create an account to participate in this conversation.