public function modelsFromIds($ids)
    {
        // We need a Model in order to save this relationship so we try
        // to whereIn the given id(s) through the related model.
        return $this->related->whereIn($this->related->getKeyName(), (array) $ids)->get();
    }
public function modelsFromIds($ids)
    {
        // We need a Model in order to save this relationship so we try
        // to whereIn the given id(s) through the related model.
        return $this->related->whereIn($this->related->getKeyName(), (array) $ids)->get();
    }
public function modelsFromIds ( $ ids ) { // We need a Model in order to save this relationship so we try // to whereIn the given id(s) through the related model. return $ this -> related -> whereIn ( $ this -> related -> getKeyName ( ) , ( array ) $ ids ) -> get ( ) ; }
Get the related models out of their Ids.

@param  array  $ids
@return \Illuminate\Database\Eloquent\Collection
Get the related models out of their Ids .