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
Laravel News Partners

Laravel Jobs

Senior Full-Stack Developer
Atlanta, GA - (remote) USA ONLY
PHP Laravel Developer
Looking for Senior Full-stack Laravel/React.js Javascript API Developer - Immediate (Full-time)
ApproveMe // Document Signing
Wordpress and/or Laravel Developer
Remote (Lexington, KY)
Mediocre Creative
Software Developer
Huntsville, AL


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