Being able to use the activerecord in this way is actually a boon to us. For example:
https://github.com/LaravelIO/laravel.io/blob/master/app/Lio/Core/EloquentRepository.php
Here, we inject a new instance of a model, then use it as a basis for querying against it.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community