Laravel 5.0 Blade Changes

The following is an excerpt from a previous issue of my weekly Laravel News Digest. Signup and have useful tips like this delivered right to your inbox.

Laravel 5.0 is not scheduled to be released until November, as it’s on a 6 month release cycle. But one of the changes that I’ve seen mentioned a few times is the new blade echo tags.

In v4 it included the following two styles: “{{” and “{{{“. The double curly bracket was a raw echo and the triple curly bracket escaped.

Currently in 5.0 both the double and triple curly brackets escape the variable and a new “{!! $var !!}” is for raw.

A common use case for raw is with form helpers:

{!! Form::open() !!}

I always found the v4 way of doing it too subtle and easy to overlook. For me, this is a welcome change. Also be sure and checkout this post showing all the new Laravel 5 features.

Filed in: Laravel Tutorials


Join 31,000+ others and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

Senior Laravel Developer
EC Pro
Senior Full-Stack Engineer
[REMOTE: USA Only] All Other Applications Will be Rejected Immediately"
Senior Full Stack PHP Developer
Motto Design Studio
Software Engineer
Remote, USA Only
Grow Progress
Lead Backend PHP Developer
Hamburg, Deutschland