vanilophp / demo

Vanilo Demo Application
https://vanilo.io/docs/
190 stars 54 forks source link

Return value of Konekt\Concord\Proxies\EnumProxy::targetClass() must be of the type string, null returned #71

Closed dipcb05 closed 3 years ago

dipcb05 commented 3 years ago

I just installed some konekt module, i have no idea about enum proxy, but this error arises. i checked php artisan concord:enums. same error showing

fulopattila122 commented 3 years ago

Does this help? vanilophp/product#12

fulopattila122 commented 3 years ago

If not, please post the contents of config/concord.php

dipcb05 commented 3 years ago

thanks for the reply. i have disconnected from the internet for some days. sorry for the late. here is my config/concord.php

<?php

return [
    'modules' => [
        Konekt\AppShell\Providers\ModuleServiceProvider::class => [
            'ui' => [
                'name' => 'Vanilo',
                'url' => '/admin/product'
            ],
    'modules' => [
                Konekt\Customer\Providers\ModuleServiceProvider::class
            ],
    'modules' => [
                Konekt\Address\Providers\ModuleServiceProvider::class
            ]
        ], 
        Vanilo\Framework\Providers\ModuleServiceProvider::class => [
            'image' => [
                'variants' => [
                    'thumbnail' => [
                        'width'  => 250,
                        'height' => 188,
                        'fit' => 'fill'
                    ],
                    'medium' => [
                        'width'  => 540,
                        'height' => 406,
                        'fit' => 'fill'
                    ]
                ]
            ],
        ]
    ]
];
dipcb05 commented 3 years ago

the output of php artisan concord:enums

In EnumProxy.php line 33:

Return value of Konekt\Concord\Proxies\EnumProxy::targetClass() must be of the type string, null returned

fulopattila122 commented 3 years ago

@dipcb05 The config is wrong:

The correct config is:

// config/concord.php
<?php

return [
    'modules' => [
        Konekt\AppShell\Providers\ModuleServiceProvider::class => [
            'ui' => [
                'name' => 'Vanilo',
                'url' => '/admin/product'
            ]
        ],
        Vanilo\Framework\Providers\ModuleServiceProvider::class => [
            'image' => [
                'variants' => [
                    'thumbnail' => [
                        'width' => 250,
                        'height' => 188,
                        'fit' => 'fill'
                    ],
                    'medium' => [
                        'width' => 540,
                        'height' => 406,
                        'fit' => 'fill'
                    ]
                ]
            ],
        ]
    ]
];