From f74ecd087431aa935f4a736de3ea5ab003900581 Mon Sep 17 00:00:00 2001 From: Bas Date: Tue, 2 Jan 2018 15:57:31 +0000 Subject: [PATCH] Make HasAttributes::getDateFormat public It doesn't really make sense to make the getter protected function if the setter is public. --- src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php b/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php index 2893495cbfd5..8edf5b29382b 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php @@ -781,7 +781,7 @@ public function getDates() * * @return string */ - protected function getDateFormat() + public function getDateFormat() { return $this->dateFormat ?: $this->getConnection()->getQueryGrammar()->getDateFormat(); }