We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94c05b2 commit f119ba6Copy full SHA for f119ba6
src/Console/ModelsCommand.php
@@ -572,7 +572,9 @@ public function getPropertiesFromMethods($model)
572
$reflectionClass = new ReflectionClass($model);
573
$methodReflections = $reflectionClass->getMethods();
574
if ($methodReflections) {
575
- $methodReflections = array_filter($methodReflections, function ($methodReflection) {
+ // Filter out private methods because they can't be used to generate magic properties and HasAttributes'
576
+ // methods that resemble mutators but aren't.
577
+ $methodReflections = array_filter($methodReflections, function (\ReflectionMethod $methodReflection) {
578
return !$methodReflection->isPrivate() && !(
579
in_array(
580
\Illuminate\Database\Eloquent\Concerns\HasAttributes::class,
0 commit comments