This is a continuation of my previous post: https://josafebalili.com/posts/service-repository-pattern-v2/

Eloquent for me means querying data in database in an elegant way.

https://laravel.com/docs/8.x/eloquent

Let's bind it.

Don't forget to change your PostService constructor to EloquentPostRepositoryInterface.

public function __construct(EloquentPostRepositoryInterface $postRepository)

{        

$this->postRepository = $postRepository;   

 }

You can check the repo at https://github.com/jsafe00/laravel-service-repository/tree/with-eloquent-interface