Laravel Classroom image

Prashant  Nigam / Student / Web Technology

 
To post your Question Join Classroom
 
Lesson Topics's No:-  First|1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9|Last
Lessons:-Fluent Query Builder

10.1 Retrieving Results
Let’s have a look at some of the other trigger methods for retrieving results.
get()
We have just used this, it will bring back all objects which are the result of the query in an array.
first()
This trigger will bring back a single result object. The first object to match the requirements of
the query.
find($id)
This trigger will find the item by its database id. This is a handy shortcut to where('id', '=',
$id). It will bring back a single result object.
only($fieldname)
This will bring back the result for a single field matching the query.
get(array())
Pass an array of fields to get() to retrieve only those fields.

 
 
 

Prashant  Nigam

Skills    Laravel

Qualifications :-
Location :-,,,
Description:-
Explore
 

  Students (0)