Support the ongoing development of Laravel.io →

4,606 Threads

insert or update multipile rows

I have this code: $sqlInsert = array( array('id'=>1, 'temp'=>1), array('id'=>2, 'te...

0 Likes
13 Replies

Order paginated results by HAVING on related model

I have 2 tables: User [ id, name, address_id, active ] Address [ line1, line2, city, county, postcod...

0 Likes
0 Replies

How to merge two eloquent collections?

I have a questions table, and a tags table. I want to fetch all questions from tags of a given quest...

0 Likes
1 Replies

Adding brackets in join > where

Hi all, Due to the lack of "WHERE IN" for joins, I'm trying to add a bracketed 'OR WHERE'...

0 Likes
1 Replies

informix connection with laravel

I find no way to connect with informix through eloquent?

0 Likes
1 Replies
posted 10 years ago

Sort Model first on relation then on field in the model

I have this setup ready and running Contact -> belongsToMany('Account') Account -> belongsToMa...

0 Likes
1 Replies
Solved

Target [Illuminate\Contracts\Console\Kernel] is not instantiable.

Synopsis I have a problem where by when I try to call migrate:reset within a test tearDown method I...

0 Likes
1 Replies
Solved

How to run PostgresSQL with Laravel 5?

I’m working on Laravel 5 with postgres as database. I’ve configured postgres 9.4 and pgAdmin III and...

0 Likes
0 Replies

Update multiple rows using multiple select menu inputs

What I want to accomplish, is to update multiple rows at once, based on what has been submitted usin...

0 Likes
2 Replies

Proper API JSON pagination

Hello everyone. I'm kinda new to Laravel so sorry if this is a noob question. I have an API controll...

0 Likes
3 Replies
Solved

Seeding Sqlite database fails while MySQL works fine

Hey guys, I want to seed a Sqlite memory DB for testing purposes. The seeds work fine for my develop...

0 Likes
3 Replies
Solved

Laravel eloquent modelling is getting buggy?

Hi, I am create multi-relation system on tables, and return $staff i get whole data successfully.Its...

0 Likes
2 Replies
Solved

Cant find a solution in Query

hi all, i need to execute the following query as iam new to laravel, i cant find what went wrong in...

0 Likes
0 Replies

Polymorphic Relationship with eager loading other relationships

Hey guys, im currently working on a project with a polymorphic relation and im trying to combine it...

0 Likes
3 Replies

UPDATE won't work

edit.blade <label align="center" > {!!$post->id!!}</label> <textarea rows="5" cols...

0 Likes
0 Replies

(new to Laravel) Class not found in the Controller

I've making my first laravel applications based on some phpacademy tutorials on youtube. Seems like...

0 Likes
3 Replies
Solved

How to create logic for 'users who view my profile' ?

Hi, It might be a noobish question but I'm not sure how to write this logic... Lets say I have Blog...

0 Likes
2 Replies

Pivot for different destination table

I am going crazy... I have: a Test model and a tests table (Id,name,some other fields) a Module mod...

0 Likes
1 Replies

getting related models randomly with a limit

greetings! so, i want to get X random models from a parent: i have sub-categories and they have many...

0 Likes
1 Replies

Cannot add a Foreign Key to table

I created two tables and wanted to use the following command to create a foreign key $table->fore...

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.

© 2025 Laravel.io - All rights reserved.