Created
August 15, 2014 09:10
-
-
Save dennisoderwald/02bd6bd8acd73a71b6a4 to your computer and use it in GitHub Desktop.
morphMany Issue
This file contains 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 | |
class Resort extends Eloquent { | |
public function metas() | |
{ | |
return $this->morphMany('Meta', 'metable')->lists('value', 'key'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment