Support the ongoing development of Laravel.io →

4,311 Threads

posted 10 years ago

unable to withTrashed() using eager load

hi guys, here is my model: public function GetArticle($query, $parent = NULL, $showDeleted = false,...

0 Likes
0 Replies

how to implements repository for polymorphic relations

hello, This is my first thread. I m very newbie to Laravel. I have vehicle class morphTo(Bus) and Mo...

0 Likes
1 Replies
Solved

Integrity constraint violation

Hi, I try to create a small CRM with "leads", notes about leads", clients" and &...

0 Likes
3 Replies

Using Sentry and Facebook login: Call to undefined method

I'm trying to integrate fb-connect in Laravel using Sentry instead of the default Authentication pac...

0 Likes
0 Replies

Onetomany relation return null in one side

i have a one to many relation that return value on one side and null in the other side !! class Part...

0 Likes
1 Replies
posted 10 years ago

Changing property name of an eager loaded relation

I've a Upload model that morphTo some other models like Post. When I fetch posts I want to eager loa...

0 Likes
1 Replies
Solved
posted 10 years ago

Many to many with different foreign key

Hi, I am attempting to build an application on top of an existing database structure. I need to rela...

0 Likes
2 Replies
Solved

Override pageName in pagination

Hi, I would like to rename the query string param 'page' in pagination engine. I have seen that the...

0 Likes
2 Replies
posted 10 years ago

Problems with relationships(Models)

Hello everyone :) First time writing in here, im working on a project, and im having some really ann...

0 Likes
0 Replies

How to Create Records on Pivot Table

Hey guys. I want to create a simple CMS with posts, categories and tags. Those models all have belon...

0 Likes
2 Replies

Single model used various times in a relation

Hi, so I have a question regarding relationships. I have a user model, and an event model. The event...

0 Likes
2 Replies

Wrong decimal places for float and decimal

I have a great problem with Laravel at the moment. I've tried float and decimal datatypes without an...

0 Likes
3 Replies
Solved

Please help with syntax problem in migration/Schema code

I have the following code that produces the following error: "Undefined variable: tbl" The...

0 Likes
2 Replies
Solved

OneToMany relation -> How to save when i have the id?

I have model called Reference which can have many child References but only one parent Reference. So...

0 Likes
3 Replies
posted 10 years ago

Eloquent not respecting camelCase to snake_case conversion

I have a weird anomaly with laravel and was wondering if anyone could point me in the right directio...

0 Likes
0 Replies
posted 10 years ago

Simple relation not working?

I have two models. Article: class Article extends Eloquent { protected $table = 'articles';...

0 Likes
0 Replies

Insert data from a relation using Eloquent

Hello All, Im new here and just would like to know if the below way is PROPER OR NOT(it works for me...

0 Likes
2 Replies

Search and filtering with whereHas

I have 3 tables. Photo id area_id user_id description User id name Area id name I want to make a...

0 Likes
6 Replies

etrepat/baum navigation menu

Hi guys, I am using this great package to store nested packages, I want to publish this tree of nest...

0 Likes
1 Replies

How to use this query in laravel

I'm converting roject from pure PHP to Laravel 4, and I have a problem with converting this query SE...

0 Likes
3 Replies
Solved

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.