File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,13 @@ protected function setUp()
94
94
});
95
95
96
96
$ this ->app ['router ' ]->get ('/relations/hasManyWithTrashed ' , function (DataTables $ datatables ) {
97
- return $ datatables ->eloquent (User::with (['posts ' => function ($ query ) {
97
+ return $ datatables ->eloquent (User::with (['posts ' => function ($ query ) {
98
98
$ query ->withTrashed ();
99
99
}])->select ('users.* ' ))->toJson ();
100
100
});
101
101
102
102
$ this ->app ['router ' ]->get ('/relations/hasManyOnlyTrashed ' , function (DataTables $ datatables ) {
103
- return $ datatables ->eloquent (User::with (['posts ' => function ($ query ) {
103
+ return $ datatables ->eloquent (User::with (['posts ' => function ($ query ) {
104
104
$ query ->onlyTrashed ();
105
105
}])->select ('users.* ' ))->toJson ();
106
106
});
Original file line number Diff line number Diff line change @@ -125,13 +125,13 @@ protected function setUp()
125
125
});
126
126
127
127
$ this ->app ['router ' ]->get ('/relations/hasOneWithTrashed ' , function (DataTables $ datatables ) {
128
- return $ datatables ->eloquent (User::with (['heart ' => function ($ query ) {
128
+ return $ datatables ->eloquent (User::with (['heart ' => function ($ query ) {
129
129
$ query ->withTrashed ();
130
130
}])->select ('users.* ' ))->toJson ();
131
131
});
132
132
133
133
$ this ->app ['router ' ]->get ('/relations/hasOneOnlyTrashed ' , function (DataTables $ datatables ) {
134
- return $ datatables ->eloquent (User::with (['heart ' => function ($ query ) {
134
+ return $ datatables ->eloquent (User::with (['heart ' => function ($ query ) {
135
135
$ query ->onlyTrashed ();
136
136
}])->select ('users.* ' ))->toJson ();
137
137
});
You can’t perform that action at this time.
0 commit comments