The following is the query I am using to get the results from the database. As you can see it has a chain paginate. I don't want my results to be paginated.
return DB::table('example')->where('status', '1')->orderBy('name', 'desc')->paginate(50);
When I remove the method paginate
.
return DB::table('example')->where('status', '1')->orderBy('name', 'desc');
I get the following error message.
Object of class Illuminate\Database\Query\Builder could not be converted to string
How can I do that?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2o0xW0K
via IFTTT
Aucun commentaire:
Enregistrer un commentaire