mirror of
				https://github.com/crater-invoice/crater.git
				synced 2025-10-28 04:01:10 -04:00 
			
		
		
		
	add ability to delete files on update
This commit is contained in:
		| @ -128,6 +128,17 @@ class Updater | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     public static function deleteFiles($json) | ||||
|     { | ||||
|         $files = json_decode($json); | ||||
|  | ||||
|         foreach($files as $file) { | ||||
|             \File::delete(base_path($file)); | ||||
|         } | ||||
|  | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     public static function migrateUpdate() | ||||
|     { | ||||
|         Artisan::call('migrate --force'); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user