Skip to content

Commit f72a166

Browse files
Fixed bug with model name
1 parent eb8ba57 commit f72a166

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Illuminate/Database/Eloquent/RelationNotFoundException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class RelationNotFoundException extends RuntimeException
2323
/**
2424
* Create a new exception instance.
2525
*
26-
* @param mixed $model
26+
* @param object $model
2727
* @param string $relation
2828
* @return static
2929
*/
@@ -33,7 +33,7 @@ public static function make($model, $relation)
3333

3434
$instance = new static("Call to undefined relationship [{$relation}] on model [{$class}].");
3535

36-
$instance->model = $model;
36+
$instance->model = $class;
3737
$instance->relation = $relation;
3838

3939
return $instance;

0 commit comments

Comments
 (0)