File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -14,13 +14,6 @@ trait Inheritance
1414 */
1515 public static $ inheritanceColumn = 'type ' ;
1616
17- /**
18- * Defines the type name for use with single table inheritance.
19- *
20- * @var mixed
21- */
22- public static $ inheritanceType ;
23-
2417 /**
2518 * Create a new Eloquent model instance.
2619 *
@@ -79,10 +72,6 @@ protected static function isRootModel()
7972 */
8073 protected static function getInheritanceType ()
8174 {
82- if (isset (static ::$ inheritanceType )) {
83- return static ::$ inheritanceType ;
84- }
85-
8675 $ class = static ::class;
8776 $ flippedMap = array_flip (static ::$ inheritanceMap ?? []);
8877
@@ -92,7 +81,7 @@ protected static function getInheritanceType()
9281 $ type = $ class ;
9382 }
9483
95- return static :: $ inheritanceType = $ type ;
84+ return $ type ;
9685 }
9786
9887 /**
You can’t perform that action at this time.
0 commit comments