protected function extendsEloquent(ReflectionClass $class) { return $class->isSubclassOf('Illuminate\\Database\\Eloquent\\Model'); }