Skip to content

Commit ca6a432

Browse files
committed
Update Laravel to 5.4.18, also fixes potential fatal error on upgrade from old compiled files
1 parent 9320c26 commit ca6a432

File tree

2 files changed

+84
-76
lines changed

2 files changed

+84
-76
lines changed

composer.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"guzzlehttp/guzzle": "6.2.3",
2121
"igaster/laravel-theme": "1.14.0",
2222
"laracasts/utilities": "2.1.0",
23-
"laravel/framework": "5.4.16",
23+
"laravel/framework": "5.4.18",
2424
"laravel/tinker": "1.0.0",
2525
"lord/laroute": "2.4.4",
2626
"mtdowling/cron-expression": "1.2.0",
@@ -53,6 +53,14 @@
5353
}
5454
},
5555
"scripts": {
56+
"pre-install-cmd": [
57+
"php -r \"!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');\"",
58+
"php -r \"!file_exists('bootstrap/cache/compiled.php') || @unlink('bootstrap/cache/compiled.php');\""
59+
],
60+
"pre-update-cmd": [
61+
"php -r \"!file_exists('bootstrap/cache/services.php') || @unlink('bootstrap/cache/services.php');\"",
62+
"php -r \"!file_exists('bootstrap/cache/compiled.php') || @unlink('bootstrap/cache/compiled.php');\""
63+
],
5664
"post-root-package-install": [
5765
"php -r \"file_exists('.env') || copy('.env.example', '.env');\""
5866
],

0 commit comments

Comments
 (0)