We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e83982 commit ec880a6Copy full SHA for ec880a6
src/Classes/RelationalMetrics.php
@@ -21,8 +21,8 @@ class RelationalMetrics extends RelationalRelationAbstract implements Relational
21
*/
22
public function __construct(string $target)
23
{
24
- if (class_exists($target)) {
25
- $this->model = app("App\\Models" . $target);
+ if (class_exists('App\\Models\\'.$target)) {
+ $this->model = "App\\Models\\" . $target;
26
} else {
27
return "Target Model ". $target. " Is Not Found!";
28
}
0 commit comments