Skip to content

Commit d1614c8

Browse files
authored
Merge pull request yajra#1422 from intrepidws/patch-2
[L4] Add missing "return" in Carbon object example.
2 parents 54b33ba + 22ee1a8 commit d1614c8

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)