laravel-admin-extensions / log-viewer

Log viewer for laravel
http://laravel-admin.org/
MIT License
130 stars 65 forks source link

BootExtension中是否应该先执行Admin::extend('log-viewer', __CLASS__); #20

Open cryptothree opened 4 years ago

cryptothree commented 4 years ago

安装log-viewer后添加extensions配置后发现配置不生效,比如如下配置,跟踪代码后发现log-viewer的trait BootExtension是先执行static::registerRoutes();注册路由,此时name还没有传入

'extensions' => [
        'log-viewer' => [
            'route' => [
                'domain' => env('ADMIN_DOMAIN')
            ]
        ]
    ]