Skip to content

Commit ec880a6

Browse files
committed
wip
1 parent 8e83982 commit ec880a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Classes/RelationalMetrics.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class RelationalMetrics extends RelationalRelationAbstract implements Relational
2121
*/
2222
public function __construct(string $target)
2323
{
24-
if (class_exists($target)) {
25-
$this->model = app("App\\Models" . $target);
24+
if (class_exists('App\\Models\\'.$target)) {
25+
$this->model = "App\\Models\\" . $target;
2626
} else {
2727
return "Target Model ". $target. " Is Not Found!";
2828
}

0 commit comments

Comments
 (0)