From 4450a69908f4949746b7317d7c8d582e107d3101 Mon Sep 17 00:00:00 2001 From: A1Gard Date: Wed, 3 Jul 2024 21:55:57 +0330 Subject: [PATCH] optimized --- app/Console/Commands/makePart.php | 2 +- app/Models/Setting.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/makePart.php b/app/Console/Commands/makePart.php index 03f1659..c3dd346 100644 --- a/app/Console/Commands/makePart.php +++ b/app/Console/Commands/makePart.php @@ -80,7 +80,7 @@ DOC; file_put_contents($folderPath . '/' . $part . '.json', json_encode($detail,JSON_PRETTY_PRINT)); file_put_contents($folderPath . '/' . ucfirst($part) . '.php', $handler); file_put_contents($folderPath . '/' . $part . '.scss', $scss); - File::copy(__DIR__.'/data/screenshot.dat',$folderPath .'/screenshot.png'); + File::copy(__DIR__.'/data/screen.png',$folderPath .'/screenshot.png'); $this->info(__("Theme part created successfully: [blade, js, json, scss, php, assets, screenshot]")); diff --git a/app/Models/Setting.php b/app/Models/Setting.php index 4127891..e8ff576 100644 --- a/app/Models/Setting.php +++ b/app/Models/Setting.php @@ -13,5 +13,5 @@ class Setting extends Model public $translatable = ['value']; public static $settingTypes = ['TEXT', 'LONGTEXT', 'CODE', 'EDITOR', - 'CATEGORY', 'GROUP', 'CHECKBOX', 'FILE','COLOR']; + 'CATEGORY', 'GROUP', 'CHECKBOX', 'FILE', 'COLOR']; }