Support the ongoing development of Laravel.io →

4,313 Threads

Every move i make at laravel ,laravel stuck!!

I just installed new laravel 4 fresh copy. new copy url : http://localhost/ln/public I setup config...

0 Likes
1 Replies

Simplifying Many to Many relationship with partial constraints

Hello folks, I am currently working on a problem that makes me want to smack my head on my table. I...

0 Likes
1 Replies

One Mysql Database - Two Laravel Projects with some same tables in it

I plan to make 2 different laravel projects ( At Dedicated Server where each project has a differe...

0 Likes
5 Replies

Eloquent ORM - database records inserted twice

I am new to PHP and Laravel. I have a table games and a model Game. In routes.php, I am doing the fo...

0 Likes
8 Replies

Event in boot() of model not called

Hi, i have the following code in an eloquent model: public static function boot() { pare...

0 Likes
4 Replies

Pivot table with another table prefix

Hi everybody, I like to create a many-to-many relationship between an existing (non-prefixed) and a...

0 Likes
3 Replies
Solved

user meta table and model association through eloquent

hey guys and girls, got a predicament i need some help with. I'm building (hopefully) a really devel...

0 Likes
0 Replies

Updating records (one-to-one relationship) help needed!

What I need to achieve: One Veiculo "MAY" have one Colaborador, and a Colaborador "MA...

0 Likes
5 Replies

Is it possible to manipulate form data before passing in to database?

Hello awesome Laravel community!!! This is my events table in DB $table->increments('id');...

0 Likes
4 Replies

How to specify which values are needed from db in Laravel?

After auth when getting user i need to exclude all values except needed, hot to do this? Tried somet...

0 Likes
6 Replies
Solved

Ramblings : The Repository

The "Repository" was the elusive unicorn that I struggled to grapple for a decent amount o...

0 Likes
2 Replies

Laravel Magic in Eloquent and View

Hey guys, just found out some functionality in Eloquent and View classes. I think this does help out...

0 Likes
4 Replies

Creating complex nested query in Eloquent

I am migrating a legacy PHP app to Laravel and am having difficulty trying to re-write a 'store loca...

0 Likes
1 Replies

Getting data from my pivot table

Hi all, I've just started using Laravel and I am really enjoying it. I am a little confused about ho...

0 Likes
0 Replies

Using relations -> many to many

Hi all, I have 3 tables: companies, schedules and companies_schedules. I want in the companies_sched...

0 Likes
4 Replies
posted 10 years ago

Count multiple on a filtered eloquent query

Hi all, i have a simple eloquent query and want to count multiple stats. $folder = Folder::whereUser...

0 Likes
0 Replies

Using a relationship SUM in a where statement.

Hi there, Struggling to get my head around this one, I am trying to get the SUM if a relationships c...

0 Likes
1 Replies

Complete Users table to adapt to the last changes in the User Model from Laravel

Seeing the latest changes of the User Model and User Authentication in the latest versions of Larave...

0 Likes
1 Replies
Solved

Creating a Relationship with a User, Ribbon and adding additional information

Hi All, I am trying to create a relationship between a used by many Ribbon and a User however I want...

0 Likes
3 Replies

Laravel inserting into a three-way pivot table

##Summary## I am building a music discovery service. My question is: How do I insert data into the t...

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.

© 2025 Laravel.io - All rights reserved.