Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
laravel-mongodb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sinan
laravel-mongodb
Commits
9096abe1
Commit
9096abe1
authored
Feb 06, 2018
by
Remi Collin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change Model::getDateFormat() to public
parent
2a7ea3be
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
Model.php
src/Jenssegers/Mongodb/Eloquent/Model.php
+1
-1
User.php
tests/models/User.php
+1
-1
No files found.
src/Jenssegers/Mongodb/Eloquent/Model.php
View file @
9096abe1
...
...
@@ -101,7 +101,7 @@ abstract class Model extends BaseModel
/**
* @inheritdoc
*/
p
rotected
function
getDateFormat
()
p
ublic
function
getDateFormat
()
{
return
$this
->
dateFormat
?:
'Y-m-d H:i:s'
;
}
...
...
tests/models/User.php
View file @
9096abe1
...
...
@@ -65,7 +65,7 @@ class User extends Eloquent implements AuthenticatableContract, CanResetPassword
return
$this
->
embedsOne
(
'User'
);
}
p
rotected
function
getDateFormat
()
p
ublic
function
getDateFormat
()
{
return
'l jS \of F Y h:i:s A'
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment