Support the ongoing development of Laravel.io →

jonshutt

Joined 9 Dec 2014

Statistics

Threads 4
Replies 2
Solutions 0
Articles 0

Morphable with HasOne - getting the right info

Hi, I have a User model, and polymorphic models to define different user types - eg UserAdmin One of...

0 Likes
2 Replies

Accessing 'parent' controller functions

Hello, I have a lot of nested controllers eg /company/$id/products/$id/details routes are: company.s...

0 Likes
0 Replies
posted 9 years ago

File upload required on create - then not required for updates

I've got a form where people can upload a file, and in the rules for the model having a file is requ...

0 Likes
0 Replies

Model - with many types. Advice wanted

Hi there, new to Laravel, but getting on well! But just after some advice for a project. I have user...

0 Likes
1 Replies
replied 9 years ago

Morphable with HasOne - getting the right info

True... User Model: public function userable() { return $this->morphTo(); } This is a polymorph...

0 Likes
replied 9 years ago

Model - with many types. Advice wanted

ok, answered my own question with some more searching - polymorphic relations - a good article here...

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.