vanilophp/framework

Failed opening required when change concord routes config

Closed this issue · 2 comments

Description

I need add one middleware for custom acl. I follow configurantion for documentation https://vanilo.io/docs/1.2/configuration. But when add my config for routes i get this error

[2020-11-19 14:29:47] local.ERROR: Illuminate\Routing\RouteFileRegistrar::register(): Failed opening required '/application/application/vendor/konekt/appshell/src/resources/routes/web.php' (include_path='.:/usr/share/php') {"exception":"[object] (Symfony\\Component\\ErrorHandler\\Error\\FatalError(code: 0): Illuminate\\Routing\\RouteFileRegistrar::register(): Failed opening required '/application/application/vendor/konekt/appshell/src/resources/routes/web.php' (include_path='.:/usr/share/php') at /application/application/vendor/laravel/framework/src/Illuminate/Routing/RouteFileRegistrar.php:35)
[stacktrace]
#0 {main}
"} 

my concord.php file

<?php

return [
    'modules' => [
        Konekt\AppShell\Providers\ModuleServiceProvider::class => [
            'ui' => [
                'name' => 'App',
                'url' => '/admin/product'
            ],
            'routes' => [
                // Admin path (url) prefix (if changing, also change for Vanilo Framework)
                'prefix'     => 'admin',
                // middlewares for the route group
                'middleware' => ['web', 'auth', 'acl'],
                // Route files to load 
                'files'      => ['web'],
                // Route name prefix
                'as'         => 'appshell.'
            ],
        ],
        Vanilo\Framework\Providers\ModuleServiceProvider::class => [
            'currency'    => [
                'code'   => 'BRL',
                'sign'   => 'R$ ',
                'format' => '%2$s%1$g' // see sprintf. Amount is the first argument, currency is the second
            ]
        ]
    ]
];

My envorimment:

Docker: phpdockerio/php73-fpm:latest
composer.json

"require": {
        "php": "^7.2.5",
        "aaronsaray/madmimi-api-php": "^1.0",
        "developersrede/erede-php": "*",
        "dingo/api": "^3.0.0",
        "doctrine/dbal": "^2.10",
        "fideloper/proxy": "^4.2",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^6.3",
        "laravel/framework": "^7.24",
        "laravel/tinker": "^2.0",
        "laravel/ui": "^2.0",
        "maatwebsite/excel": "^3.1",
        "pagseguro/pagseguro-php-sdk": "^6.0",
        "tymon/jwt-auth": "^1.0",
        "vanilo/framework": "^1.2"
    }

Sorry for the late response. What is the exact thing you're trying to achieve?
Would you like to protect the built-in routes with another ACL middleware?

stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed within 3 days if no further activity occurs. Thank you for your contributions.