Support the ongoing development of Laravel.io →

torkiljohnsen

Joined 11 Feb 2014

Statistics

Threads 4
Replies 11
Solutions 2
Articles 0

One-to-one relation through pivot table

I have component A, users, which connect to component B, addresses. One user has one address, always...

0 Likes
12 Replies
Solved
posted 10 years ago

Your package development workflow

How do you solve the following: I'm working on a subpackage to my main project. Using the Workbench...

0 Likes
7 Replies
Solved

Customizing environment config folder location

Is it possible to customize where the system looks for the environment config folder? For instance i...

0 Likes
0 Replies

SaaS, multisite setup

I'm trying to set up multiple sites to share the same Laravel codebase, but be self-contained and ha...

0 Likes
2 Replies
replied 9 years ago

One-to-one relation through pivot table

Of course :) Thanks for the help!

0 Likes
replied 9 years ago

One-to-one relation through pivot table

You are right. I modified the code slightly before pasting it here and messed it up. In my live code...

0 Likes
replied 9 years ago

One-to-one relation through pivot table

Argh. Not quite there yet it seems. My User model: public function address() { if (!array_key_ex...

0 Likes
replied 9 years ago

One-to-one relation through pivot table

Nice, @jarektkaczyk, thanks I'll try that. Btw your code contains $this->categories->first(),...

0 Likes
replied 9 years ago

One-to-one relation through pivot table

Can that be used with a pivot table?

0 Likes

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.