Support the ongoing development of Laravel.io →

3,325 Threads

posted 12 years ago

Dynamic model appends

Hello. I'm looking for a way to create dynamic appends to a model. right now i have something like p...

0 Likes
0 Replies

Eloquent has no handling with malicious data??

I did a simple query like: $query = "sdsad'sa"; Spot::where('title', 'like', '%'.$query.'%...

0 Likes
8 Replies

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

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

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

I doing somthing wrong? the sentry save update does not update DB but returns true

Hi i was checking my develop and i saw something wrong, the develop works apparently fine but just w...

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

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

eloquent lists 2d array

table data id name type 1 Plain PATTERN 2 Strip PATTERN 3 Checker PATTERN 7 Oxford FABRIC 8 Twill FA...

0 Likes
1 Replies

"Different" validation approach

Hello Artisans! I'm working on a project that is quite complex and I'm trying to find the best solut...

0 Likes
3 Replies
posted 12 years ago

How to add user id as a default value when inserting new records

I am building app for enterprise their are three tables: users table (belong to company) companies...

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

multiple queries in a scope function

HI I have recently posted this questions on stack overflow. I was hoping someone here would know the...

0 Likes
0 Replies
posted 12 years ago

Extending Eloquent Builder parseRelations

Has anyone thought of extending this method? For example I have a couple of models with the followin...

0 Likes
0 Replies

Package that tracks page views in a time range: last day, week, month, all time

"Popularity" is a Laravel 4 package for tracking popular Eloquent elements of a website in...

0 Likes
4 Replies

Looking for a Freelance Laravel Developer from the Netherlands

Hi, For a client we've building a Laravel 3.x application for his business. We decided to focus our...

0 Likes
1 Replies
posted 12 years ago

Using Setter/Getter IoC in Models

I have a setter/getter container that works in my controllers. How can I use the getters in my model...

0 Likes
0 Replies

Fields to organize entries in my DB (order_by Myfield)

Hello, I started on Laravel after a lot of sites on Codeigniter. So I try in my first dev to respect...

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.

© 2026 Laravel.io - All rights reserved.