From 3a01e351decab2fd246ea4005e9df39679d98295 Mon Sep 17 00:00:00 2001 From: Yu Bing Date: Thu, 28 Jan 2016 11:37:08 +0800 Subject: [PATCH] Ignore abstract class or interface, not throw exception --- src/Console/ModelsCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Console/ModelsCommand.php b/src/Console/ModelsCommand.php index d93325a..a0e3881 100644 --- a/src/Console/ModelsCommand.php +++ b/src/Console/ModelsCommand.php @@ -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);