Skip to content

Known Issues

Max edited this page Mar 19, 2019 · 2 revisions

Target [League\Fractal\ScopeFactoryInterface] is not instantiable while building [Dingo\Api\Transformer\Adapter\Fractal, League\Fractal\Manager]

This issue has cropped up in some highly customised projects, for example; https://github.com/dingo/api/issues/1636

The solution is to add the following line to the register() method of your AppServiceProvider

    public function register()
    {
        $this->app->bind("League\\Fractal\\ScopeFactoryInterface", "\\League\\Fractal\\ScopeFactory");
        //
    }