After updated my Ubuntu to 17.10
, PHP to 7.2.3
, and created a fresh Laravel project with version 5.6.12
, I've tested this blade code:
@php($x = 5)
@php $y = 2 @endphp
and get this output from browser
<?php($x = 5)
@php $y = 2 ?>
Is it a bug or the @php
bracket directive has been deprecated?
Thank you in advance.
@php
too or remove second@php
- u_mulder@php($x = 5) @endphp @php $y = 2 @endphp
OR@php($x = 5) $y = 2 @endphp
- Hiren Gohel