From 54843cbdf28a19c1a6b2c2eba1b1faaa11699e44 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 18 Nov 2019 16:01:36 -0500 Subject: [PATCH] Use the model_name to both check for a class and retrieve it --- app/Dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Dashboard.php b/app/Dashboard.php index cfca2a5..35d1799 100644 --- a/app/Dashboard.php +++ b/app/Dashboard.php @@ -73,7 +73,7 @@ class Dashboard $model_name = ucfirst($model); if (file_exists(app_path() . '/Models/' . $model_name . '.php')) { - $model_class = 'App\\Models\\' . ucfirst($model); + $model_class = 'App\\Models\\' . $model_name; if ($type != null && $type != $model_class::$dashboard_type) { return null;