Accessing nested relationship with Laravel 4
问题 I'm having trouble figuring out how to access a nested relationship within Laravel. The specific example I have is a Movie that has many entires in my Cast table which has one entry in my People table. These are my models: MOVIE class Movie extends Eloquent { protected $primaryKey = 'movie_id'; protected $table = 'movie'; // Relationships public function cast() { return $this->hasMany('MovieCast', 'movie_id'); } } MOVIECAST class MovieCast extends Eloquent { protected $table = 'movie_cast';