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;