Created
April 22, 2015 14:39
-
-
Save geggleto/ec62170b85e1353e2e96 to your computer and use it in GitHub Desktop.
Eloquent Traits
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace VMS\Traits; | |
| trait UserRelationshipTrait { | |
| /** | |
| * @return \Illuminate\Database\Eloquent\Relations\HasOne | |
| */ | |
| public function users() { | |
| return $this->hasOne("VMS\Models\User"); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment