Skip to content

Exception throw on a fresh installation of laravel & dingo-api #1584

@karamqubsi

Description

@karamqubsi
Q A
Bug? maybe
New Feature? no
Framework Laravel
Framework version 5.6.35
Package version v2.0.0-alpha1
PHP version 7.2.9

Actual Behaviour

Exception is thrown after performing any php artisan command while in debug mode in a fresh laravel with dingo setup.

Expected Behaviour

There should be no exceptions

Steps to Reproduce

After installing fresh Laravel then adding Dingo package then starting debug mode in my VSCode an exception is thrown after performing any php artisan command ,
Example : php artisan serve ( with debug mode )
will give
PHP Fatal error: Uncaught Illuminate\Contracts\Container\BindingResolutionException: Target [League\Fractal\ScopeFactoryInterface] is not instantiable while building [Dingo\Api\Transformer\Adapter\Fractal, League\Fractal\Manager]. in /laravel/testapi/vendor/laravel/framework/src/Illuminate/Container/Container.php:933

if you are not running the debug mode you will not see the error at all , but I guess this might be affecting some other behaviour (I'm not sure ) for example when trying to generate documentation I'm getting empty file with only titles so I tried to debug there and I encountered this issue but I'm not sure what are side effects of it .

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