mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Merge pull request #338 from cnanney/patch-1
Look for additional facade aliases in app config array
This commit is contained in:
@@ -238,6 +238,8 @@ class Generator
|
|||||||
//'Validator' => 'Illuminate\Support\Facades\Validator',
|
//'Validator' => 'Illuminate\Support\Facades\Validator',
|
||||||
];
|
];
|
||||||
|
|
||||||
|
$facades = array_merge($facades, $this->config->get('app.aliases', []));
|
||||||
|
|
||||||
// Only return the ones that actually exist
|
// Only return the ones that actually exist
|
||||||
return array_filter($facades, function($alias){
|
return array_filter($facades, function($alias){
|
||||||
return class_exists($alias);
|
return class_exists($alias);
|
||||||
|
|||||||
Reference in New Issue
Block a user