mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-15 18:02:55 -05: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