Skip to content

Commit e2a9204

Browse files
committed
Make EmbedsRelations::embedsMany and EmbedsRelations::embedsOne public
1 parent 92dc495 commit e2a9204

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Eloquent/EmbedsRelations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ trait EmbedsRelations
2828
*
2929
* @return EmbedsMany
3030
*/
31-
protected function embedsMany($related, $localKey = null, $foreignKey = null, $relation = null)
31+
public function embedsMany($related, $localKey = null, $foreignKey = null, $relation = null)
3232
{
3333
// If no relation name was given, we will use this debug backtrace to extract
3434
// the calling method's name and use that as the relationship name as most
@@ -62,7 +62,7 @@ protected function embedsMany($related, $localKey = null, $foreignKey = null, $r
6262
*
6363
* @return EmbedsOne
6464
*/
65-
protected function embedsOne($related, $localKey = null, $foreignKey = null, $relation = null)
65+
public function embedsOne($related, $localKey = null, $foreignKey = null, $relation = null)
6666
{
6767
// If no relation name was given, we will use this debug backtrace to extract
6868
// the calling method's name and use that as the relationship name as most

0 commit comments

Comments
 (0)