Support the ongoing development of Laravel.io →

4,603 Threads

Database connections not picking up .env.local.php settings within my connections array

i updated to the latest Homestead package and then run the set up. All went well except when then ru...

0 Likes
2 Replies
Solved

How to sync pivot data via morphedByMany ?

Hello ! i'm trying to sync a polymorphic pivot table from the morphedByMany side of a relationship....

0 Likes
0 Replies

Laravel 4: Updating table Joins with form model binding

​​ I once did an eager loading query and it worked. Then using model binding i'm trying to update my...

0 Likes
0 Replies
posted 10 years ago

A preg_replace() error during db insert

I don't know but it seems that Laravel suddenly doesn't want to insert my data. I receive this error...

0 Likes
0 Replies

One to One Relationship with two fields(columns) connection, how?

I have three table: table HouseHold(HouseHoldID) table Member(HouseHoldID,MemberID) table PatientCa...

0 Likes
2 Replies

Can I improve my DB::select query?

Hi, It seems a bit overkill what I have, after some searching I finally got my query working but not...

0 Likes
0 Replies

Best practice - place large queries in model or controller?

Hi, I'm quite new to laravel, so trying to get the hang of the best practices at the moment. Today I...

0 Likes
7 Replies
Solved

Ordering 'Post's in a 'Category' based on sum() of 'Vote's

I have 3 models... Category, Post, and Vote In my category view, I am showing an index of all Posts...

0 Likes
0 Replies

Building queries with pivot table fields

I have a User model, and an Item model. Each Item has one Category, and each User has a "benlon...

0 Likes
3 Replies
Solved
posted 10 years ago

Database Configuration Homestead

I'm trying to connect to my database from my laravel application. But I just seem to get the wrong c...

0 Likes
0 Replies

Add an array to a Eloquent\Collection

Salam, I want to add some new elements to a Eloquent Collection with the add public function, but I...

0 Likes
2 Replies

Planning my first project: Migrating a text-based log file to a Laravel Application

I would like to create an application that logs GET data directly to the DB through Laravel from URL...

0 Likes
1 Replies

Baum Nested Set, share to view triggers hierarchy queries

I'm using the Baum Nested Set package, which works very well. In one place in my code, I need to lis...

0 Likes
0 Replies

Take not working with Eager Load Constraints

Problem I'm trying to use Eager Load Constraints with a take condition it keeps returning null in th...

0 Likes
0 Replies
posted 10 years ago

SQL statements prepared wrongly?

Either there is a quite dangerous bug in laravel or I just made a stupid assumption. I believe that...

0 Likes
0 Replies

Eager loading with multiple relations

I wish to list a member with events he/she participates, and his/her collar numbers (idnumbers) for...

0 Likes
5 Replies
Solved

unit test General error: 1 Cannot add a NOT NULL column

Hi, be patience I'm quite new at unit test in laravel I've this migrations use Illuminate\Database\S...

0 Likes
0 Replies

Eloquent query relations.

Hi, can someone halp me with this problema. I want load events based on city_id stored in locations...

0 Likes
0 Replies

Eager loading error - Trying to get property of non-object

I'm trying to utilize the eager loading feature in laravel but it doesn't work as i expected. When i...

0 Likes
0 Replies

How to make search with pagination?

I want create a gallery. How can I do?

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.

© 2024 Laravel.io - All rights reserved.