Merge pull request #315 from icedfish/ignore_exception

Ignore abstract class or interface, not throw exception
This commit is contained in:
Barry vd. Heuvel
2016-01-28 09:19:58 +01:00
+2 -1
View File
@@ -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);