Support the ongoing development of Laravel.io →

4,314 Threads

Sequence of 2 tables

How do I query 2 different tables and yet sequentially display them to the user based on date of ins...

0 Likes
0 Replies

How to create migration to create Auto Increment Non Primary Column

i have tried to create biginteger column like Schema::create('person', function(Blueprint $table) {...

0 Likes
5 Replies

Port existing PHP + MySQL application (CMS) to Laravel

Hi Laravel community, I have an existing PHP + MySQL application (Content Management System), which...

0 Likes
0 Replies

Lots of SQL queries when enabling pagination

Hi, I'm having a high number of SQL queries when I enable pagination in my view. I basically have co...

0 Likes
1 Replies
Solved

Eloquent Performance (Overwrite Getter?)

Hey there :) Even though I do know that there is quite some overhead using magic functions / eloquen...

0 Likes
0 Replies

Posting Data to multiple tables with a single form

I was hoping to get some ideas for posting data to multiple tables in mysql. For example. I want to...

0 Likes
2 Replies

Laravel 4 eloquent query returns an old database value instead of the updated one

I have a Book table that has a column for stocks count.For example the beginning stocks of a certain...

0 Likes
1 Replies
posted 10 years ago

Count relationship rows

Hello, I am having problem querying my database. If anyone can help it would be very appreciated. I...

0 Likes
3 Replies

[Package] Image/Intervention not uploading files on update

I've used Image/intervention to manage my images. It works great when I'm storing a record, but when...

0 Likes
0 Replies
posted 10 years ago

Pagination does not work with eager loading

So here is the scenario You can paginate a set like this ~~ $books = Books::where('price', 1)->pa...

0 Likes
3 Replies
posted 10 years ago

Sum of two columns multiplied in Eloquent

Hi there - anybody know how to fix this? $sales = OrderLine::with(array('Order' => function($que...

0 Likes
3 Replies

Use Migrations While Developing?

I'm developing my first Laravel-based application from scratch, and designing as I go, so the databa...

0 Likes
3 Replies

Trouble working with many to many relationship

Hi, I have a many to many relationship set up between a Posts table and a Tags table with a post_tag...

0 Likes
2 Replies

Polymorphic Many To Many - 2 Locations, 1 Journey

Hi all, I'm looking for some help with this polymorphic conundrum... I have a Journey table: Journey...

0 Likes
1 Replies
posted 10 years ago

Whats the best type of relation to use in my case?

Hey everyone, I have a Profile model which has one identity and that identity could be a passport or...

0 Likes
0 Replies

Laravel, when user logs out - SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry

I get this error when I logout (http://example.com/logout). I click on a link which takes me to the...

0 Likes
4 Replies
posted 10 years ago

CRUD For polymorphic relationship

Hello everyone. I have such models: company, contact and note. Company and contact has a lot of note...

0 Likes
0 Replies

One to many relationship help need

in table 'materials' columns are 'id','unit_id','description','category_id','created_at','updated_at...

0 Likes
1 Replies
Solved

Best way to ensure a successful saving database objects

Hi! Im looking for the best way to ensure that my objects are being saved properly What im doing $us...

0 Likes
2 Replies
Solved

[AJAX] Get data from database.

Hello everyone, I am using laravel's eloquent for my website and I want to get all the data from a t...

0 Likes
2 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.

© 2025 Laravel.io - All rights reserved.