Support the ongoing development of Laravel.io →

nikosv

Joined 5 Mar 2014

Statistics

Threads 3
Replies 7
Solutions 2
Articles 0
posted 9 years ago

many-to-many relation between pivot tables. Is this possible?

Consider the following: student many-to-many with semester (pivot1) lesson many-to-many with cla...

0 Likes
0 Replies
posted 9 years ago

Stange eloquent behaviour. Can someone explain why this happens?

I had the following models. <?php use LaravelBook\Ardent\Ardent; class Teacher extends Ardent{...

0 Likes
0 Replies
posted 9 years ago

one-to-many relation problem

Hello i facing an issue with the inverse relation of a one-to-many relation. My two models are the f...

0 Likes
1 Replies
Solved
replied 9 years ago

belongsToMany relationsship on custom pivot model

It would be nice if someone can post sample code that solves this problem.

0 Likes
replied 9 years ago

How to: foreach without affecting every row?

lorienhd said: Thanks ! Working like a charm It seems that you figured out what to do while i was...

0 Likes
replied 9 years ago

How to: foreach without affecting every row?

ok. i will try to give an example based on you sample code. First in the controller we prepare data...

0 Likes
replied 9 years ago

one-to-many relation problem

ok i managed to solved it changing public function expertise() { return $this->be...

0 Likes
Solved
replied 9 years ago

How to: foreach without affecting every row?

One way is to prepare your data first foreach ($products as $product) { $category[$product->categ...

0 Likes
Solved

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.