Support the ongoing development of Laravel.io →

4,585 Threads

Shopping Cart ID -> where to save for later?

I have a shopping cart ID that I'd like to save somewhere to pick up the cart later when the user co...

0 Likes
1 Replies

Eloquent class all() function causing server error 500

So I have a table on my database, with an eloquent class allowing me to access it. So far everything...

0 Likes
0 Replies

whereIn error: Prepared statement contains too many placeholders

I have a simple query like this: $userIdLists = Users::whereIn('id', $idList)->select(array('id')...

0 Likes
2 Replies
Solved

Laravel is crazy

Long story short. I created a migration named "create_music_table" which have following fi...

0 Likes
3 Replies

Many to many relation needs refresh after attaching new records?

I am writing an app that administers tests to students. I have a model that represents a prototype o...

0 Likes
1 Replies

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

Laravel and Google AppEngine datastores

Hi, I would like to know if someone could use Google AppEngine datastore API for PHP in a Laravel ap...

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

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

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
posted 10 years ago

Problem with seeding.

I'm getting the following message by my code. preg_replace() parameter mismatch pattern is a string...

0 Likes
1 Replies

Multi model form 1-to-many with "add more" button

Let's say we want to build this form: Team: Team Name: Team Country: Members: Member A name: Member...

0 Likes
0 Replies

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

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.