Commit 9b125dc0 authored by Remi Collin's avatar Remi Collin

Add new optionnal argument in HybridRelations::morphTo()

parent 9096abe1
...@@ -169,9 +169,10 @@ trait HybridRelations ...@@ -169,9 +169,10 @@ trait HybridRelations
* @param string $name * @param string $name
* @param string $type * @param string $type
* @param string $id * @param string $id
* @param string $ownerKey
* @return \Illuminate\Database\Eloquent\Relations\MorphTo * @return \Illuminate\Database\Eloquent\Relations\MorphTo
*/ */
public function morphTo($name = null, $type = null, $id = null) public function morphTo($name = null, $type = null, $id = null, $ownerKey = null)
{ {
// If no name is provided, we will use the backtrace to get the function name // If no name is provided, we will use the backtrace to get the function name
// since that is most likely the name of the polymorphic interface. We can // since that is most likely the name of the polymorphic interface. We can
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment