Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
LMongo
Eloquent
Builder
first
LMongo\Eloquent\Builder::first PHP Method
Builder Class Documentation
Show file
Open project: navruzm/lmongo
first()
public
method
Execute the query and get the first result.
public
first
(
array
$columns
= [] ) :
Model |
null
$columns
array
return
Model |
null
public function first($columns = array()) { return $this->take(1)->get($columns)->first(); }
Builder
__call
__construct
addUpdatedAtColumn
decrement
delete
eagerLoadRelations
find
findOrFail
first
firstOrFail
forceDelete
get
getEagerLoads
getModel
getModels
getQuery
getRelation
increment
isNested
isSoftDeleteConstraint
loadRelation
nestedRelations
onlyTrashed
paginate
parseNested
parseRelations
pluck
restore
setEagerLoads
setModel
setQuery
softDelete
update
with
withTrashed