File tree Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Expand file tree Collapse file tree 3 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 11
11
"license" : " MIT" ,
12
12
"require" : {
13
13
"php" : " >=5.4.0" ,
14
- "illuminate/support" : " 4.2.x" ,
15
- "illuminate/database" : " 4.2.x" ,
16
- "illuminate/events" : " 4.2.x"
14
+ "illuminate/support" : " 4.2.x-dev" ,
15
+ "illuminate/container" : " 4.2.x-dev" ,
16
+ "illuminate/database" : " 4.2.x-dev" ,
17
+ "illuminate/events" : " 4.2.x-dev"
17
18
},
18
19
"require-dev" : {
19
- "orchestra/testbench" : " dev-master " ,
20
+ "orchestra/testbench" : " * " ,
20
21
"mockery/mockery" : " *"
21
22
},
22
23
"autoload" : {
Original file line number Diff line number Diff line change @@ -232,11 +232,6 @@ public function attributesToArray()
232
232
{
233
233
$ value = (string ) $ value ;
234
234
}
235
-
236
- else if ($ value instanceof MongoDate)
237
- {
238
- $ value = $ this ->asDateTime ($ value )->format ($ this ->getDateFormat ());
239
- }
240
235
}
241
236
242
237
return $ attributes ;
Original file line number Diff line number Diff line change @@ -332,8 +332,8 @@ public function testDates()
332
332
333
333
// test custom date format for json output
334
334
$ json = $ user ->toArray ();
335
- $ this ->assertEquals ($ user ->birthday -> format ( ' l jS \of F Y h:i:s A ' ) , $ json ['birthday ' ]);
336
- $ this ->assertEquals ($ user ->created_at -> format ( ' l jS \of F Y h:i:s A ' ) , $ json ['created_at ' ]);
335
+ $ this ->assertEquals (( string ) $ user ->birthday , $ json ['birthday ' ]);
336
+ $ this ->assertEquals (( string ) $ user ->created_at , $ json ['created_at ' ]);
337
337
338
338
// test default date format for json output
339
339
$ item = Item::create (array ('name ' => 'sword ' ));
You can’t perform that action at this time.
0 commit comments