Haehnchen / idea-php-laravel-plugin

Laravel Framework Plugin for PhpStorm / IntelliJ IDEA
MIT License
572 stars 108 forks source link

Feature Request: support config files in directories #253

Open marvinschroeder opened 4 years ago

marvinschroeder commented 4 years ago

Please add support for configuration files nested in directories like config/modules/messages.php

Which could be requested with $foo = config('modules.messages.foo');

Saw #169 but with Laravel 6.x and Laravel plugin 0.15.4 and phpStorm 2019.3 it is not working.

marvinschroeder commented 4 years ago

OK, it works.. But it ignores always the first item of the config array, if this item is an array..

So when using config('messages.attachments.allowed_extensions') this is recognized by the plugin:

return [
    'attachments' => [
        'allowed_extensions' => 'test',
    ],
];

This is not recognized by the plugin:


return [
    'attachments' => [
        'allowed_extensions' => ['test', 'test1'],
    ],
];