Support the ongoing development of Laravel.io →

4,311 Threads

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 9 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 9 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 9 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 9 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

Excessive queries in Laravel 4.2. What am I doing wrong?

So, I have this relationship: public function publishedAlbums() { return $this->hasMany('Album')...

0 Likes
1 Replies
Solved

Route model binding & Repositories

Greetings. I am having some confusion about route model binding with/vs repositories. Here's how I...

0 Likes
0 Replies

return data array with ajax?

Is it possible to return a data array in Laravel with ajax? I basically need to pull in some data wi...

0 Likes
3 Replies
posted 9 years ago

return updated model after update it's relations

Hi, For updating one to many translations inside a post i want to return the updated post. Is it nes...

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