From 10eafd9eeaa964892ce0f1d00de3e5125b0068b0 Mon Sep 17 00:00:00 2001 From: Juan Lago Date: Thu, 9 Nov 2023 11:45:47 +0100 Subject: [PATCH] Prevent to raise an exception when compiled blade template was already removed. --- src/Illuminate/View/Compilers/BladeCompiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/View/Compilers/BladeCompiler.php b/src/Illuminate/View/Compilers/BladeCompiler.php index 18d1978af176..51479e81edc5 100644 --- a/src/Illuminate/View/Compilers/BladeCompiler.php +++ b/src/Illuminate/View/Compilers/BladeCompiler.php @@ -332,7 +332,7 @@ public function render() return tap($view->render(), function () use ($view, $deleteCachedView) { if ($deleteCachedView) { - unlink($view->getPath()); + @unlink($view->getPath()); } }); }