Skip to content

Commit

Permalink
Fixed bug with model name
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell authored May 3, 2020
1 parent eb8ba57 commit f72a166
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class RelationNotFoundException extends RuntimeException
/**
* Create a new exception instance.
*
* @param mixed $model
* @param object $model
* @param string $relation
* @return static
*/
Expand All @@ -33,7 +33,7 @@ public static function make($model, $relation)

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

$instance->model = $model;
$instance->model = $class;
$instance->relation = $relation;

return $instance;
Expand Down

0 comments on commit f72a166

Please sign in to comment.