Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
UserAdminV2
Overview
Overview
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
庄欣
UserAdminV2
Commits
5196d015
Commit
5196d015
authored
Sep 14, 2011
by
Taylor Otwell
Browse files
Options
Browse Files
Download
Plain Diff
fixed merge conflicts.
parents
6becbaba
6904cf11
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
laravel/database/eloquent/model.php
+8
-8
public/index.php
+0
-0
No files found.
laravel/database/eloquent/model.php
View file @
5196d015
...
@@ -202,23 +202,23 @@ abstract class Model {
...
@@ -202,23 +202,23 @@ abstract class Model {
}
}
/**
/**
* Get
the first model result
* Get
an array of models from the database.
*
*
* @return
mixed
* @return
array
*/
*/
private
function
_
firs
t
()
private
function
_
ge
t
()
{
{
return
(
count
(
$results
=
$this
->
take
(
1
)
->
_get
())
>
0
)
?
reset
(
$results
)
:
null
;
return
Hydrator
::
hydrate
(
$this
)
;
}
}
/**
/**
* Get
an array of models from the database.
* Get
the first model result
*
*
* @return
array
* @return
mixed
*/
*/
private
function
_
ge
t
()
private
function
_
firs
t
()
{
{
return
Hydrator
::
hydrate
(
$this
)
;
return
(
count
(
$results
=
$this
->
take
(
1
)
->
_get
())
>
0
)
?
reset
(
$results
)
:
null
;
}
}
/**
/**
...
...
public/index.php
View file @
5196d015
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