I tried to put the php section at the very end of the file, but this results in an error like the one shown below.
Pages/Index.vue
<template>
<div>
Hello: {{ name }}!
</div>
</template>
<php>
use function \Fusion\{prop};
$name = prop('Aaron');
</php>
Error message in console:
[plugin:vite:vue] Element is missing end tag.
/var/www/html/resources/js/Pages/Index.vue:8:1
6 |
7 | <php>
8 | use function \Fusion\{prop};
| ^
9 |
10 | $name = prop('Aaron');