Support the ongoing development of Laravel.io →

4,597 Threads

to many queries and long load

Im build my app localy, and Im afraid after Ill get some traffic in to it it will simply crash. and...

0 Likes
3 Replies

Problem with Eloquent - Case sensitive condition

Hi. I perform $a = Items::where('code', '=', $code); In the code column there are various entries, u...

0 Likes
3 Replies

Calling model method from controller

I have this in my car.php model public function bySortOrder() { return $this->orderBy('so...

0 Likes
3 Replies
Solved

Eloquent - Get Post where parent of parent id = XX. It's possible?

I'm trying to get a Post inside a Session, but between Post and Session I have a Category Model. Eac...

0 Likes
1 Replies

Make this query in Eloquent

Hi Can we do this query in Eloquent $tagString = implode (',', $tags); return DB::select (DB...

0 Likes
1 Replies

Help with relationship

Sorry for my english, is not very good. I have a User model and I have a Post model. two models have...

0 Likes
2 Replies
Solved

Knockout.js, Backbone.js, et al.?

What is the relationship between these data-binding frameworks and Laravel? Does Laravel implement s...

0 Likes
1 Replies

Question about relationship.

Guys, good morning. Question about relationship. In this query it brings me a student and two servic...

0 Likes
2 Replies
Solved

Joined table IDs are returned in the Model Collection instead of the main table IDs

Hi Guys, I have a query which it's toSql result is: select * from `jobs` left join `locations` on `j...

0 Likes
8 Replies

Eager Loading and Relations.[URGENT]

I'm trying to relate a user model and a comments model. My user model has the following code.. clas...

0 Likes
4 Replies
Solved

Seeding from migration

This may be a weird question, but is there a way to seed the db from a migration? The reason is that...

0 Likes
1 Replies
Solved

Increment in Query Builder

DB::table('items')->where('id', $itemID)->increment('save',1); As above, is that possible or d...

0 Likes
1 Replies
Solved
posted 10 years ago

Where do I put this logic?

I'm struggling with where to put logic like this? http://laravel.io/bin/Qz41 I have a multi domain a...

0 Likes
1 Replies
posted 10 years ago

Making a Forum

how could i display the forum topics from the database to the page?

0 Likes
1 Replies

best way to save a model with it's relasion

I have two tables products (model: Products) product_common_auction (model: ProductCommonAuction...

0 Likes
0 Replies
posted 10 years ago

How to make in category database subcategory

Hi i have two tables CATEGORY and PRODUCT i need SUBCATEGORY and then PRODUCT this is my database m...

0 Likes
2 Replies

Model::find($id) is being called 2 times to get related records

I am running the below Controller method which gets data from a specific Campaign table by campaign_...

0 Likes
2 Replies

Change data connection Laravel 4

Guys, good afternoon! Soon die and I can not solve a problem I'm having! I want some way I can chang...

0 Likes
5 Replies
posted 10 years ago

Seeder just insert one record instead of two

Hi, I'm new in Laravel. I learn Laravel from "Learning Laravel 4 Application Development"....

0 Likes
2 Replies

Querying a Many-to-Many Relationship

I might be overlooking this in the docs (Laravel 4.0) but I need to know how to query a many-to-many...

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