From 7e629af81042eeada1d9ac33b265a03841c17806 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Wed, 17 Jul 2019 00:51:25 -0400 Subject: [PATCH] Send a new instance of the model_class with the getModel function so the __constructor is run if one exists (allowing variable $dashboard_columns data) --- app/Dashboard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Dashboard.php b/app/Dashboard.php index 544225b..aa7931b 100644 --- a/app/Dashboard.php +++ b/app/Dashboard.php @@ -79,7 +79,7 @@ class Dashboard return null; } - return $model_class; + return new $model_class; } else { return null; }