Skip to content

Commit 9096abe

Browse files
committed
Change Model::getDateFormat() to public
1 parent 2a7ea3b commit 9096abe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Jenssegers/Mongodb/Eloquent/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ protected function asDateTime($value)
101101
/**
102102
* @inheritdoc
103103
*/
104-
protected function getDateFormat()
104+
public function getDateFormat()
105105
{
106106
return $this->dateFormat ?: 'Y-m-d H:i:s';
107107
}

tests/models/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function father()
6565
return $this->embedsOne('User');
6666
}
6767

68-
protected function getDateFormat()
68+
public function getDateFormat()
6969
{
7070
return 'l jS \of F Y h:i:s A';
7171
}

0 commit comments

Comments
 (0)