File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -83,10 +83,10 @@ protected function modifyViewsInTrace(IgnitionViewException $exception): void
83
83
{
84
84
$ viewIndex = null ;
85
85
86
-
87
86
$ trace = Collection::make ($ exception ->getPrevious ()->getTrace ())
88
87
->map (function ($ trace , $ index ) use (&$ viewIndex ) {
89
88
if ($ originalPath = $ this ->findCompiledView (Arr::get ($ trace , 'file ' , '' ))) {
89
+
90
90
$ trace ['file ' ] = $ originalPath ;
91
91
$ trace ['line ' ] = $ this ->getBladeLineNumber ($ trace ['file ' ], $ trace ['line ' ]);
92
92
@@ -98,7 +98,7 @@ protected function modifyViewsInTrace(IgnitionViewException $exception): void
98
98
return $ trace ;
99
99
})
100
100
->when (
101
- $ viewIndex !== null ,
101
+ $ viewIndex !== null && str_ends_with ( $ exception -> getFile (), ' .blade.php ' ) ,
102
102
fn (Collection $ trace ) => $ trace ->slice ($ viewIndex + 1 ) // Remove all traces before the view
103
103
)
104
104
->toArray ();
You can’t perform that action at this time.
0 commit comments