Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Mar 26, 2018
1 parent fbe4a1a commit c8554b3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Eloquent/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function load($relations)
/**
* Load a set of relationships onto the mixed relationship collection.
*
* @param string $relation
* @param string $relation
* @param array $relations
* @return $this
*/
Expand Down
28 changes: 14 additions & 14 deletions src/Illuminate/Pagination/AbstractPaginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,20 @@ protected function buildFragment()
return $this->fragment ? '#'.$this->fragment : '';
}

/**
* Load a set of relationships onto the mixed relationship collection.
*
* @param string $relation
* @param array $relations
* @return $this
*/
public function loadMorph($relation, $relations)
{
$this->getCollection()->loadMorph($relation, $relations);

return $this;
}

/**
* Get the slice of items being paginated.
*
Expand Down Expand Up @@ -521,20 +535,6 @@ public function setCollection(Collection $collection)
return $this;
}

/**
* Load a set of relationships onto the mixed relationship collection.
*
* @param string $relation
* @param array $relations
* @return $this
*/
public function loadMorph($relation, $relations)
{
$this->getCollection()->loadMorph($relation, $relations);

return $this;
}

/**
* Determine if the given item exists.
*
Expand Down

0 comments on commit c8554b3

Please sign in to comment.