From ca164dca03b2b52e97aa224a7e186ee4253284fd Mon Sep 17 00:00:00 2001 From: Fady Mondy Date: Wed, 15 May 2024 17:47:23 +0300 Subject: [PATCH] remove resource/pages/widgets from json --- src/Models/Plugin.php | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/Models/Plugin.php b/src/Models/Plugin.php index 4685a0a..0003ba4 100644 --- a/src/Models/Plugin.php +++ b/src/Models/Plugin.php @@ -25,9 +25,6 @@ class Plugin extends Model 'github' => 'string', 'active' => 'boolean', 'providers' => 'json', - 'pages' => 'json', - 'resources' => 'json', - 'widgets' => 'json', 'type' => 'string', ]; @@ -58,10 +55,7 @@ public function getRows() "github" => isset($info->github)?$info->github:null, "docs" => isset($info->docs)?$info->docs:null, "active" => Module::find($info->name)->isEnabled(), - "providers" => json_encode($info->providers), - "resources" => json_encode($info->resources), - "pages" => json_encode($info->pages), - "widgets" => json_encode($info->widgets), + "providers" => json_encode($info->providers) ]; }); } @@ -88,10 +82,7 @@ public function getRows() "github" => isset($info->github)?$info->github:null, "docs" => isset($info->docs)?$info->docs:null, "active" => false, - "providers" => json_encode($info->providers), - "resources" => json_encode($info->resources), - "pages" => json_encode($info->pages), - "widgets" => json_encode($info->widgets), + "providers" => json_encode($info->providers) ]; } }