Repository code in Laravel
You can merge the methods findBySlug, findByTitle and other findBy methods into one method that accepts parameter field and value

$this-&gt;findBy($field, $title);


And move it in BaseRepository Class. See this article Repository Pattern

so it would look something like this

public function findBy( $field, $value ) {
  return $this-&gt;model-&gt;where($field, $value);
}