Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 45c9152

Browse files
authored
Merge pull request #14 from yajra/patch-before-callback
Do not require return from before callback closure.
2 parents 232b945 + 3189e41 commit 45c9152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/Services/DataTable.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function ajax()
158158
$dataTable = $this->dataTable();
159159

160160
if ($callback = $this->beforeCallback) {
161-
$dataTable = $callback($dataTable);
161+
$callback($dataTable);
162162
}
163163

164164
$response = $dataTable->make(true);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /