Support the ongoing development of Laravel.io →

3,313 Threads

Error Trying to get property of non-object

I am struggling to understand how laravel works and I have a very difficult time with it Model - Use...

0 Likes
1 Replies

Pagination with custom variable

Hi again. I have 3 tabs in a page. I have 3 queries and thus get the results and make 3 different pa...

0 Likes
1 Replies

Retrieving Translated Field from Pivot Table

Hello, one of the requirements on the application I am developing is to have it to use an arbitrary...

0 Likes
0 Replies

How to handle relations between table in forms?

Hi, I've been looking for examples for a while and found out that the docs are lacking about this. H...

0 Likes
3 Replies

Conflict in Unique Column Name - Join Statement Query Builder

DB::table('users') ->join('contacts', function($join) { $join->on('users.id', '=', 'contacts.u...

0 Likes
1 Replies

Help getting data from my Database

I have two models with relationship: City and Events. In the controller i have this: $cities = City:...

0 Likes
1 Replies

Insert One to Many with multiple records

Hi there, I would like to insert a post and its images with laravels ORM. Posts title tekst Images...

0 Likes
3 Replies

Eloquent - select single value from database

Hi all, I'm creating a drop down list that gets populated using data from a database. Everything wor...

0 Likes
3 Replies
posted 10 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 10 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 10 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

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.