Consider the following: student many-to-many with semester (pivot1) lesson many-to-many with cla...
I had the following models. <?php use LaravelBook\Ardent\Ardent; class Teacher extends Ardent{...
Hello i facing an issue with the inverse relation of a one-to-many relation. My two models are the f...
It would be nice if someone can post sample code that solves this problem.
lorienhd said: Thanks ! Working like a charm It seems that you figured out what to do while i was...
ok. i will try to give an example based on you sample code. First in the controller we prepare data...
ok i managed to solved it changing public function expertise() { return $this->be...
One way is to prepare your data first foreach ($products as $product) { $category[$product->categ...
The Laravel portal for problem solving, knowledge sharing and community building.
The community