Laravel 5 released

Laravel 5 released

Friday, 1 September 2017

Laravel 5 was officially released yesterday and along with it an updated website as well as websites for the US and EU Laracon conferences this year. This comes following a teaser tweet from creator Taylor Otwell last week simply stating “#L5. Next week.”

For those unfamiliar with PHP frameworks, Wikipedia describes it most eloquently as “A web application framework is a software framework that is designed to support the development of dynamic websites, web applications, web services and web resources. The framework aims to alleviate the overhead associated with common activities performed in web development. For example, many frameworks provide libraries for database access, templating frameworks and session management, and they often promote code reuse.

Laravel is the “PHP framework for web artisans” and prides itself in the use of simple and readable syntax, painless routing and an amazing ORM called Eloquent. It has a burgeoning community of active developers that has increased rapidly since its first release in 2011. In a December 2013 survey of PHP frameworks, Laravel was listed as the most popular. As of August 2014, Laravel is also the most popular and watched PHP project on GitHub.

There are a number of new features and changes since 4.2. Some of the more significant changes are listed below:

The entire directory structure has been changed. It may seem daunting at first but once you get used to it, it becomes second nature again.

For the Blade templating engine, both double and triple curly braces {{{ }}} now escape data which is a welcome addition and a sure way to combat exploits like XSS. The new {!! !!} raw tags can be used to prevent data escaping which is ideal for form helpers:
{!! Form::open() !!}

More helper functions have been added, e.g. in L4 to render a view you would use:
View::make(‘path.to.view’)
This can now be done using the simple function call:
view(‘path.to.view’)

Another exciting inclusion is Flysystem which is a filesystem abstraction class which allows you to write as easily to AWS S3 and Rackspace Cloud Files as you would writing to the local filesystem.

Some other noteworthy inclusion are controller method injection, Socialite (making it easier to work with OAuth sites like Facebook, Twitter, Google and GitHub), Laravel Elixir (a new wrapper around gulp to make dealing with assets easier) and Laravel Scheduler (designed to simplify tasks that need to be run via CRON).

At Internet Dreams Studio we are avid supporters of Laravel and can’t wait to see what the Laravel team have planned for the next release.

Like what you see?

Get in touch