Skip to content

Commit

Permalink
make public
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 4, 2017
1 parent 145af22 commit e44596f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Illuminate/Database/Eloquent/Relations/Relation.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ abstract class Relation
*
* @var array
*/
protected static $morphMap = [];
public static $morphMap = [];

/**
* Create a new relation instance.
Expand Down Expand Up @@ -347,8 +347,8 @@ protected static function buildMorphMapFromModels(array $models = null)
public static function getMorphedModel($alias)
{
return array_key_exists($alias, self::$morphMap)
? self::$morphMap[$alias]
: null;
? self::$morphMap[$alias]
: null;
}

/**
Expand Down

0 comments on commit e44596f

Please sign in to comment.