Support the ongoing development of Laravel.io →

4,604 Threads

Get last N posts per category

I know this has been asked before by others but no answer is good or explicit. Many give great worki...

0 Likes
0 Replies

Issues with Eloquent using with(), groupBy() and sum()

I have got my relationships correctly set in the models. I like that I do not have to join any table...

0 Likes
0 Replies
posted 7 years ago

How to use Informix database

How can I use a Informix database with laravel? Seems like it doesn't support it by default. I am us...

0 Likes
0 Replies
posted 7 years ago

Laravel 5.2 Getting results depending on many to many relations

Hello. I cannot get the "many to many" relation working on product filtering. I would just...

0 Likes
0 Replies

Database relationships one-to-one not saving

I'm a noob at this, please forgive me but I'm trying to connect a one-to-one relationship between a...

0 Likes
0 Replies

Combining results of queries

I am trying to combine results of two queries: For my first query, dd($sales) array:3 [▼ 0...

0 Likes
0 Replies
posted 7 years ago

Laravel 5.4 undefined variable

Hi fellas, after updating to Laravel 5.4 I have received some weird errors that I don't know how to...

0 Likes
1 Replies

Call to a member function groupBy on a non-object

I am trying to merge two queries $sales = DB::table('sales') ->join('drugs', 'drugs.id', '=',...

0 Likes
2 Replies

Help me please translate simple raw update query eloquently

Hey guys, Been trying to come with solution to translate this query as eloquent as possible, but kee...

0 Likes
1 Replies

Mass Insertion of Dummy Records w/Relations

I am trying to insert 1000's of dummy records over numerous seeding artisan commands. But I am stuck...

0 Likes
1 Replies

Form Handling

Hi. how can i input mutliple data from form into database using laravel 5.3 my code for form is be...

0 Likes
1 Replies
posted 7 years ago

Problem with Migration

Hi, i have following migration: $tableName = 'oxacceptedterms'; Schema::create($tableName, func...

0 Likes
0 Replies

accessing price sum on the basis of subcategory

I have three tables: Item { id, category_id, name, price} Category { id, subcategory_id, name } Subc...

0 Likes
0 Replies

How to query soft deleted models?

I have a social network type site where there is the normal front end and an admin interface for me...

0 Likes
0 Replies

Looking for Basic CRUD Laravel App

Hello Everyone, I am new to laravel Framework.I am looking for Baisc CRUD application or any best re...

0 Likes
4 Replies

Infinite scroll with custom queries in Laravel 5.3

Hi how can I implement infinite scroll with custom queries in Laravel ? Something like : $query = Se...

0 Likes
0 Replies

Eloquent / Fluent SubQuery select

Hi, I can't find a way to do a left join to count elements from pivot table using Eloquent and Fluen...

0 Likes
3 Replies

Insert Mass Dummy Records

I want to create 1000's of dummy users, but also correct relations. Example would be create a User w...

0 Likes
0 Replies

Call to undefined method Illuminate\Database\Query\Builder::lists()

I've just started to study Laravel using this course Laravel 5 Fundamentals but in lesson 22 I've a...

0 Likes
4 Replies
Solved

Helper Function

i want a helper function to get an element out of my database. can anybody help me?

0 Likes
2 Replies

Thanks to our community

Solutions given in the past year. Excluding solutions from thread authors.

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.