I trying to implement the following case using laravel5.3 l5-repository
I have Offer Entity and there are many types of offers, basic offer - premium - gold.
each one is validated and created and listed in a different way than the other types
so I have created an Offer Entity Contains OfferRepository
interface ,
EloquentOfferRepository
extends BaseRepository
and injected them in the RepositoryServiceProvider
Now I want to Extend the EloquentOfferRepository
to create ( EloquentBasicOfferRepository
, EloquentPremiumOfferRepository
, EloquentGoldOfferRepository
)
but I can't find a way to inject them in the controller and don't know how to use them then.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire