Skip to content

Commit 22ee1a8

Browse files
authored
Add missing "return" in Carbon object example
1 parent 8dfa873 commit 22ee1a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ It is better, you know these:
110110
$posts = Post::select(array('posts.id','posts.name','posts.created_at','posts.status'));
111111

112112
return Datatables::of($posts)
113-
->editColumn('created_at', function($data){ $data->created_at->toDateTimeString() })
113+
->editColumn('created_at', function($data){ return $data->created_at->toDateTimeString(); })
114114
->filter(function($query){
115115
if (Input::get('id')) {
116116
$query->where('id','=',Input::get('id'));

0 commit comments

Comments
 (0)