{!! !!} is the new raw version for L5 so you must use it to get no escaped stuff. For auto-completion just wait for your editor plugins update :)
Form syntax in the views
I started with L4 and then noticed that there are lots of courses about L5, so I just switched to 5, but I noticed one thing, that I didn't quite understand... and didn't like also. Let's take these 2 snippets:
{!! Form::label('email', 'Email: ') !!}
{!! Form::email('email') !!}
and
{{ Form::label('email', 'Email:') }}
{{ Form::email('email') }}
So, in L4 we use the 2nd version and it does not escape the html code and it's fine, works like a charm. In L5, though, we have to use the {!! !!} version because otherwise just 2 curly braces will make escaping. Nevertheless, I prefer the 2nd version (the {{ }} ) because it provides auto-completion for the functions that I write inside and it also colours the code.
So, is it obligatory in L5 to use {!! !!} and if so - is there any other way so that I can get use of the functionality of autocompletion and colouring as of {{ }} ?
Hey @milkncookiez, if you've updated to PHPStorm 8.0.2 then this new syntax is supported, you just have to configure it. Go to Preferences (or Settings on Windows I think) -> Languages & Frameworks -> PHP -> Blade and then all you need to do is switch the "raw tags" over to the new syntax ( {!! and !!} )
Please or to participate in this conversation.