mirror of
https://github.com/LinkStackOrg/LinkStack.git
synced 2025-02-15 11:31:00 +01:00
Refactor file path construction for pre-update component
This commit is contained in:
parent
62621a6e81
commit
40dd91a89f
@ -181,7 +181,8 @@
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
$file = Http::timeout(10)->get($preUpdateServer)->body();
|
$file = Http::timeout(10)->get($preUpdateServer)->body();
|
||||||
file_put_contents(base_path('resources/views/components/pre-update.blade.php'), $file);
|
$filePath = base_path('resources' . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR . 'components' . DIRECTORY_SEPARATOR . 'pre-update.blade.php');
|
||||||
|
file_put_contents($filePath, $file);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
session(['update_error' => 'Could not prepare update. ' . $e->getMessage()]);
|
session(['update_error' => 'Could not prepare update. ' . $e->getMessage()]);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user