Support the ongoing development of Laravel.io →

4,313 Threads

search for permission role

Hi everybody! I'm a newbie in laravel and I'm trying to create a interface to manage users roles and...

0 Likes
2 Replies
Solved

Same request in laravel and in phpMyAdmin give different result, why ?

Hi I execute a request with Db::raw in my laravel model. When i do the same request in phpmyadmin, t...

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

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.