Created
August 15, 2014 09:10
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