Skip to content

Commit

Permalink
static variable names fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulgolakiya committed Apr 3, 2016
1 parent b6760f4 commit 4ddbc29
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions templates/scaffold/datatable.stub
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class $MODEL_NAME$DataTable extends DataTable
*/
public function query()
{
$users = $MODEL_NAME$::query();
$$MODEL_NAME_PLURAL_CAMEL$ = $MODEL_NAME$::query();

return $this->applyScopes($users);
return $this->applyScopes($$MODEL_NAME_PLURAL_CAMEL$);
}

/**
Expand Down Expand Up @@ -67,6 +67,6 @@ class $MODEL_NAME$DataTable extends DataTable
*/
protected function filename()
{
return 'users';
return '$$MODEL_NAME_PLURAL_CAMEL$';
}
}

0 comments on commit 4ddbc29

Please sign in to comment.