In the laravel framework we can use blade to add PHP code in html file.
We are using both {{ }} and {{{ }}} syntax in blade files of Laravel.
What is the difference between them?
i have a code in a blade file like this
{{{ $errors->has('slider') ? 'has-error' : '' }}}
Before Laravel 5:
{{{ $var }}} escapes the contents of $var{{ $var }} echoes $var unescapedSince Laravel 5:
{{ $var }} AND {{{ $var }}} escape the contents of $var{!! $var !!} echoes $var unescapedIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With