Skip to content

Conversation

@jnoordsij
Copy link
Contributor

For testing simple Blade strings, there is a blade function that creates a temporary file containing some strings content. This procedure breaks on Windows, as the created file receives a .tmp extension (e.g. lar0000.tmp). As the view name resolver replaces dots in view names with directory separators (as they are considered to be in some nested directory structure), the resolver searches for wrong path on Windows (e.g. %TEMP%/lar0000/tmp.blade.php).

This PR uses the filename (from pathinfo) rather than the basename as view name and filename, hence also works on Windows machines.

@taylorotwell taylorotwell merged commit 856cdba into laravel:8.x Apr 19, 2021
@jnoordsij jnoordsij deleted the temp-view-support-windows branch April 19, 2021 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants