laracasts / Validation

Easy form validation.
https://packagist.org/packages/laracasts/validation
MIT License
150 stars 37 forks source link

Use laracasts/Validation in Laravel package #9

Open liamqma opened 10 years ago

liamqma commented 10 years ago

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.