laravel model get table columns code example
Example 1: get table name from model laravel
$item = new Item;
$table = $item->getTable();
print_r($table);
Example 2: laravel show table columns
Schema::getColumnListing($table);
$item = new Item;
$table = $item->getTable();
print_r($table);
Schema::getColumnListing($table);