
$this->model = $model;
}
// Get all instances of model
public function all()
{
…del property on class instances
protected $model;
// Constructor to bind model to repo
public function __construct(Model $model)
{
$this->model = $model;
}
// Get all instances of model
public function all()
{
return $this->model->all…