I use laracasts/Validation in a Laravel package, then I got the following error:
Illuminate \ Container \ BindingResolutionException
Target [Symfony\Component\Translation\TranslatorInterface] is not instantiable.
I understand it means Laravel doesn't know which implementation of Symfony\Component\Translation\TranslatorInterface is. My question is why in normal Laravel application Symfony\Component\Translation\TranslatorInterface is bound, however in a separate package, it's not.
I use laracasts/Validation in a Laravel package, then I got the following error:
Illuminate \ Container \ BindingResolutionException Target [Symfony\Component\Translation\TranslatorInterface] is not instantiable.
I understand it means Laravel doesn't know which implementation of Symfony\Component\Translation\TranslatorInterface is. My question is why in normal Laravel application Symfony\Component\Translation\TranslatorInterface is bound, however in a separate package, it's not.