File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -393,6 +393,9 @@ public function testDates()
393393
394394 $ user = User::create (array ('name ' => 'Jane Doe ' , 'birthday ' => '2005-08-08 ' ));
395395 $ this ->assertInstanceOf ('Carbon\Carbon ' , $ user ->birthday );
396+
397+ $ user = User::create (array ('name ' => 'Jane Doe ' , 'entry ' => array ('date ' => '2005-08-08 ' )));
398+ $ this ->assertInstanceOf ('Carbon\Carbon ' , $ user ->getAttribute ('entry.date ' ));
396399 }
397400
398401 public function testIdAttribute ()
Original file line number Diff line number Diff line change 77
88class User extends Eloquent implements UserInterface, RemindableInterface {
99
10- protected $ dates = array ('birthday ' );
10+ protected $ dates = array ('birthday ' , ' entry.date ' );
1111 protected static $ unguarded = true ;
1212
1313 public function books ()
You can’t perform that action at this time.
0 commit comments