public function all() { return $this->model->all(); }

public function find($id) { return $this->model->find($id); }

// Eloquent repository implementation class EloquentRepository implements RepositoryInterface { protected $model;

One day, while browsing through Laracasts, Alex stumbled upon a video series titled "Object-Oriented Principles in PHP". The videos were presented by the wise and experienced teacher, Laracasts' very own, Jeffrey Way.