mirror of
https://github.com/barryvdh/laravel-ide-helper.git
synced 2026-08-18 01:57:13 +00:00
Ignore abstract class or interface, not throw exception
This commit is contained in:
@@ -184,7 +184,8 @@ class ModelsCommand extends Command
|
||||
}
|
||||
|
||||
if (!$reflectionClass->IsInstantiable()) {
|
||||
throw new \Exception($name . ' is not instantiable.');
|
||||
// ignore abstract class or interface
|
||||
continue;
|
||||
}
|
||||
|
||||
$model = $this->laravel->make($name);
|
||||
|
||||
Reference in New Issue
Block a user