Skip to content

Commit

Permalink
change attribute to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoemoxiw committed Apr 25, 2018
1 parent 2929326 commit d29133d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public static function set_order_by($order_by=[]){
protected static function handle_columns(array $columns){
if (empty($columns) || $columns[0] == '*'){
$model = static::getModel();
return array_keys($model->attributes());
return \Schema::getColumnListing($model->getTable());
} else {
return $columns;
}
Expand Down

0 comments on commit d29133d

Please sign in to comment.