Tables
Business
id
name
Portfolio
id
image
description
business_id
Models
class Business extends \Eloquent
{
public function portfolio()
{
return $this->hasMany('Portfolio');
}
}
class Portfolio extends \Eloquent {
public function business()
{
return $this->belongsTo('Business');
}
}
Now i want to know is it possible if i have a portfolio id then get all the portfolios which belongs the same business id.