Support the ongoing development of Laravel.io →

4,313 Threads

Retrieve Data from 2 Tables

$orders = DB::table('orders') ->join('order_item', function($join) { $join->on('orders.id', '=...

0 Likes
1 Replies

Why is this eagerly loaded relationship returning me an empty array?

I have the following tables: lessons - lessonID - lessonName .. sections - sectionID - lessonID ref...

0 Likes
0 Replies

mongodb and laravel4

Hello, I would like to know some suggestion about using using mongodb with laravel4. thanks.

0 Likes
1 Replies
Solved

Relationships in repositories

Hi! Recently I was using a bit of repositories and one thing I am really curious about is how to imp...

0 Likes
0 Replies

Fetching Big Data in Eloquent

Any recommendations on Out of memory issue in fetching the result in Eloquent? I added DB::disableQu...

0 Likes
3 Replies

Display 'Category' names of posts

Hi, I have 3 tables in my database listings (id, title) categories (id, name, parent_id) category_l...

0 Likes
1 Replies
Solved

Eloquent query database and return output with relationship.

Hi guys. I need to return a list of products that belong to X category, so I created an input parame...

0 Likes
4 Replies
posted 10 years ago

Eloquent Relationships Across Databases?

I have two database that are required to be used for our Corporate Intranet. Is it possible to crea...

0 Likes
1 Replies

Issue with Grabbing data

$data = array( 'name' => Input::get('name') 'itemCart' => Cart::conte...

0 Likes
1 Replies
Solved

How to get belongsToMany items when using AngularJs

Hello , I have belongsTo-hasMany relationship between my post and author model.My posts index route...

0 Likes
1 Replies

Append columns to the requested columns

OK, just need a quick help, hope you guys can help me out. What I need is to append some columns to...

0 Likes
4 Replies
posted 10 years ago

Eloquent Eager Loading

Hi, I have 3 models: User Post Comment Comment belongs to a user and a post. A user has many posts a...

0 Likes
4 Replies

DB join not working as expected

<code> /* DB Structure Table: roles id || name Table: permissions id || name || display_name J...

0 Likes
0 Replies

Transaction doesn't rollback in paticular models.

Hi. I'm replacing old system to new laravel based one. There are many Database-Servers and tables, a...

0 Likes
1 Replies
Solved

Return collection with relations as json

Hello Laravel forum! I'm having trouble returning an eloquent collection with relations as json. Thi...

0 Likes
2 Replies

One model and multiple tabels

Can one model manage multiple tabels? I have Image class and 3 type of users(for each user i have o...

0 Likes
1 Replies

How to set the Primary Key and Foreign Key to string

I'm not using the auto increment for the id instead i'm using the 32 char unique id. So when i creat...

0 Likes
6 Replies
Solved

Laravel Queue with AWS

Let's say i'm submitting multiple Job to Queue with the same Job name. But while one job is processe...

0 Likes
0 Replies

Eloquent/DB design for draft/live content

I have a CMS/app setup where an admin can make changes, but the changes are only temporary/drafts un...

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