Support the ongoing development of Laravel.io →

4,608 Threads

Group by pagination without performance issues when there is over 15K results.

Laravel Eloquent query builder suffers grouping by a column and counting the results for the paginat...

0 Likes
3 Replies

Polymorphic Relationships and whereHas not working

Hi Guys, So firstly here is some code ... http://laravel.io/bin/Ld6Gx So I have a user model, and th...

0 Likes
3 Replies

Route redirect

Hey, i want to make a ban system, and i do not know how to redirect a user to a "You're banned&...

0 Likes
1 Replies
Solved

how to get current entry info in laravel eloquent

i have a table in mysql ( ques_id (auto increment , primary) , ques_title (string) ) . By using eloq...

0 Likes
1 Replies

Saving logic in a controller

Hello! It is ok to store saving logic in a controller like this (PostController.php): public fun...

0 Likes
8 Replies

Auth Basic works local but not in server

I created table and the basic authentication works fine locally but when I uploaded to the server ev...

0 Likes
7 Replies

RegEx in a request

Hello¨ Can anybody tell me how to create a request in Laravel using regular expressions? I have to s...

0 Likes
0 Replies
posted 10 years ago

Query with Query Builder. What's wrong?

Hi I want to run the following query with the query builder ... this is what i have Query SELECT...

0 Likes
2 Replies
Solved
posted 10 years ago

Table Seeder limited amount of seeds

Does anyone know if there is a limit to the amount of seeds that can loaded into a mysql db via the...

0 Likes
6 Replies
Solved
posted 10 years ago

INSERT/UPDATE session is taking 2 - 15 seconds

Looks like using the database for session data is slowing down the website I've built, and I can con...

0 Likes
5 Replies

Order by date of a nested model

I'm having difficulty to let the laravel query order by a date field of a nested query. This is what...

0 Likes
2 Replies

Using where and joins in a query returns wrong deleted_at

OK, I have the following piece of code: $projectTwitterStatuses = ProjectTwitterStatus::join('twitte...

0 Likes
0 Replies

Do some formatting after getting an object from DB

Hi there! I've got a problem. I have some fields that have to be formatted after fetching them from...

0 Likes
8 Replies

Convert sql into Eloquent or Query Builder (group_concat ,subquery)

Hi Can anyone help me to fix this issue. SELECT *, (SELECT group_concat(CASE WHEN d.disciplineNam...

0 Likes
0 Replies
posted 10 years ago

Query Builder DATETIME Issue

Hello, I'm a little new to laravel and I'm having an issue returning only the fields where the mysql...

0 Likes
1 Replies
Solved
posted 10 years ago

How to import data from a file into Redis database? Please help.

Hi! I am a very NOOB in Redis and this is the first time that I am using this application.I hope you...

0 Likes
1 Replies
Solved

How can I tell if a many-to-many sync() actually changed anything?

I need to have a way to tell if the many-to-many sync() process actually changed anything (as oppose...

0 Likes
2 Replies

Route / Model Binding for 300+ Tables

Loving Laravel so far! I want to create a huge REST API Web service that allows me to connect to pot...

0 Likes
4 Replies

Check if conversation exists

I'm creating an app where users can send messages to each other. These are my models and relationshi...

0 Likes
2 Replies
Solved

Creating relationships with enumerated tables

My current project has a form creation feature. For each form created, there is also a table created...

0 Likes
0 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.