25.06.2018 Views

Full-Stack Vue.js 2 and Laravel 5

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Preface<br />

The year is 2014 <strong>and</strong> the war of Single-Page Application (SPA) solutions is<br />

truly raging. There are many rivals: Angular, React, Ember, Knockout, <strong>and</strong><br />

Backbone, to name but a few. However, the battle being most closely watched is<br />

between Google's Angular <strong>and</strong> Facebook's React.<br />

Angular, the SPA king until this point, is a full-fledged framework that follows<br />

the familiar MVC paradigm. React, the unlikely challenger seems quite odd in<br />

comparison with its core library only dealing with the view layer <strong>and</strong> markup<br />

written entirely in JavaScript! While Angular holds the bigger market share,<br />

React has caused a seismic shift in how developers think about web application<br />

design <strong>and</strong> has raised the bar on framework size <strong>and</strong> performance.<br />

Meanwhile, a developer named Evan You was experimenting with his own new<br />

framework, <strong>Vue</strong>.<strong>js</strong>. It would combine the best features of Angular <strong>and</strong> React to<br />

achieve a perfect balance between simplicity <strong>and</strong> power. Your vision would<br />

resonate so well with other developers that <strong>Vue</strong> would soon be among the most<br />

popular SPA solutions.<br />

Despite the fierce competition, <strong>Vue</strong> gained traction quickly. This was partly<br />

thanks to Taylor Otwell, the creator of <strong>Laravel</strong>, who tweeted in early 2015 about<br />

how impressed he was with <strong>Vue</strong>. This tweet generated a lot of interest in <strong>Vue</strong><br />

from the <strong>Laravel</strong> community.<br />

The partnership of <strong>Vue</strong> <strong>and</strong> <strong>Laravel</strong> would become further entwined with the<br />

release of <strong>Laravel</strong> version 5.3 in September 2016, when <strong>Vue</strong> was included as a<br />

default frontend library. This was a perfectly logical alliance for two software<br />

projects with the same philosophy: simplicity <strong>and</strong> an emphasis on the developer<br />

experience.<br />

Today, <strong>Vue</strong> <strong>and</strong> <strong>Laravel</strong> offer an immensely powerful <strong>and</strong> flexible full-stack<br />

framework for developing web applications, <strong>and</strong> as you'll find throughout this<br />

book, they're a real treat to work with.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!