Skip to content

Use laracasts/Validation in Laravel package #9

@liamqma

Description

@liamqma

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions