Support the ongoing development of Laravel.io →

4,597 Threads

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

How to handel concurent updates that happen to a model while you have it open.

I have a problem where I have to get an Eloquent model read the data then call a complex stored proc...

0 Likes
1 Replies
Solved

update database when user click on a link

Hi, I'm a complete newbie in laravel, and I don't know how to perform some simple tasks. I have a ta...

0 Likes
14 Replies

raw sql query (fixed)

Hi guys and girsl, I have the following query which i would like to run: INSERT into ticketsorders (...

0 Likes
0 Replies

Foreign Characters

Hi All, I'm having an issue with foreign characters and I wondered if anyone had come across this be...

0 Likes
2 Replies
Solved

Repositories and Relationship

Hey guys. I want to start working with repositories because right now I handle all the data from the...

0 Likes
7 Replies

MySQL Deadlocks on Session Insert

Hi, We are facing some intermittent deadlocking on the attempted insert (or update) of new Session p...

0 Likes
2 Replies

Hierarchial data in a single table

I'm building an app with lots of this kind of data, e.g. jobs. Most have a parent so I've started cr...

0 Likes
3 Replies
posted 10 years ago

Database query where a join is null

Simple version of database. mortgages | id | case_id(cases@id) | | 1 | 1 | | 2 | 2...

0 Likes
1 Replies

Different price for each user for each product : Pivot table relation query !

My teacher today gave us a problem today, it goes like this : ##Scenario You are developing an eComm...

0 Likes
10 Replies

How to prevent duplicates on belongsTo/hasMany associative relationships.

on album model: public function band() { return $this->belongsTo('Band'); } on...

0 Likes
3 Replies

how to nested paginate

Hi all, My question is about pagination. I have some posts and some comments for each post. I unders...

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.

© 2024 Laravel.io - All rights reserved.