Published on January 9, 2017 by Mindspace

Learn how to use Laravel and Angular 2 or Vue.js 2 together. This videos explains how you may set up a backend with Laravel.

The full source code can be found in the following Github repo (choose the right branch!): github.com/mschwarzmueller/laravel-ng2-vue

Want to dive deeper into Laravel, Angular 2 or Vue.js 2? Consider diving into my courses on Udemy and Pluralsight:
Angular 2 – The Complete Guide: www.udemy.com/the-complete-guide-to-angular-2/?couponCode=YOUTUBE_2
Vue.js 2 – The Complete Guide: www.udemy.com/vuejs-2-the-complete-guide/?couponCode=YOUTUBE_VUE
Laravel – The Basics: www.pluralsight.com/courses/laravel-php-framework-getting-started-the-basics
Laravel – Models & Data: www.pluralsight.com/courses/laravel-php-framework-getting-started-models-data
Building a RESTful API with Laravel: www.pluralsight.com/courses/php-laravel-restful-web-services

Want to get some 1-on-1 coaching with experienced developers? Have a look at Savvy: www.savvy.is/?ref=9fee2b (Discount Code 9fee2b)

You can follow me on Twitter (@maxedapps), Facebook (www.facebook.com/mindspacechannel/) or visit my Website (mschwarzmueller.com).

See you in the videos!

Leave a Reply

30 Comments on "BACKEND WITH LARAVEL | Laravel + Angular 2 / Vue.js 2"

Notify of
avatar

Vivek Apollyon
Guest
Vivek Apollyon
2 days 6 hours ago

All the tech wisdom I have on me is your gift. Much gratefulness, my friend.

Johan Chouquet
Guest
Johan Chouquet
4 days 18 hours ago

I have a question : when using Laravel for APIs only, could we also have Lumen do the job ? What would be the benefits or pitfalls to do so ? Thanks !

Mindspace
Guest
Mindspace
4 days 14 hours ago

We could also use Lumen, yes. It might even be the better choice for the API approach. I'll later in the series also take another approach (where Vue.js is included in Laravel views), there Lumen would not be an options since it doesn't include views. Other than that: Definitely a viable choice!

Σπύρος Ν
Guest
Σπύρος Ν
5 days 13 hours ago

Many MANY THANKS quick question, is there any problem using resource controllers?

Mindspace
Guest
Mindspace
5 days 1 hour ago

It can quickly become confusing to understand what happens if you use resource controllers, which is why I prefer to create all actions on my own – just to make it easier to follow along.

Σπύρος Ν
Guest
Σπύρος Ν
5 days 10 hours ago

thanks, i found it weird for seeing you not using them so…

Mindspace
Guest
Mindspace
5 days 10 hours ago

You can absolutely use those.

Yadunandan Pillai
Guest
Yadunandan Pillai
6 days 4 hours ago
Hello, I was working with the Postman data for the PUT request, and my requests were not working. For some reason, passing in the content parameter didn't work as Laravel couldn't retrieve it in a PUT request. I looked online and found that changing the type of data sent from multipart to x-www-form-urlencoded worked, and it did! Just wondering if you can please explain what exactly the difference is and why symphony can't parse the former. Thanks a lot! Really appreciate the detail you put in the videos. By the way, I noticed that you started this entire project mid-December,… Read more »
Mindspace
Guest
Mindspace
5 days 10 hours ago

Actually you'll see me set it to "raw" in the video. Multipart would be used to send files, x-www-form-urlencoded is typically used to send form data which does not include any files. You can read more here: stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data

Ștefan Cîrlig
Guest
Ștefan Cîrlig
6 days 18 hours ago

You guys are awesome

Ștefan Cîrlig
Guest
Ștefan Cîrlig
6 days 9 hours ago

May I have the email of the guy who's teaching? I'm a laravel and Angular geek and sometimes get stuck and don't find answer on the internet so would probably be a lot of saving time?

Db TheChain
Guest
Db TheChain
6 days 18 hours ago

I love your tutorials! But I mainly subscribed because of your React/Redux, NodeJS/MongoDB( Simply the future stack) videos's will you be making any of these anytime soon? 🙂 I would love to see a Project from scratch with React/Redux, Node and Mongo! Keep up the good work

高远
Guest
高远
6 days 23 hours ago

After this php + vuejs2 tutorials, what will be the next?

pf kong
Guest
pf kong
7 days 9 hours ago

Simple enough and thanks a lot!

des “des969” 969
Guest
des “des969” 969
7 days 9 hours ago

Pleeeeaaaase don't hold with next part too long, because it's most interesting thing and question of all my life … The cherry on the cake .All I heard about Angular2, was only nodejs + angular2 works. Why? =(Peace to your mindspace and thanks a lot!

Mindspace
Guest
Mindspace
4 days 14 hours ago

Laravel-elixir simply is a build tool. Yes it does use NodeJS but it only runs locally on your machine, not on the server where laravel is deployed to. Getting Laravel to work with Angular Universal is possible (I think, haven't done it) but not super-simple.

Johan Chouquet
Guest
Johan Chouquet
4 days 22 hours ago

Yes, of course. One thing I though : Laravel uses laravel-elixir, based on NodeJS too. So, in the end, we should be able to "send" responses to Angular-Universal working on NodeJS for now in order to use AOT right ? That's what I would like to grasp in future videos :)! Thanks for the high quality of this video btw.

Mindspace
Guest
Mindspace
7 days 1 hour ago

Node + Angular is very popular because both use JavaScript and are kind of "hot" topics ;). I guess there also are some other advantages but in the end, Angular 2 really doesn't care about your backend.

Grcvgc Vcbh
Guest
Grcvgc Vcbh
7 days 12 hours ago

When the udemy course will be published

Grcvgc Vcbh
Guest
Grcvgc Vcbh
7 days 10 hours ago

Mindspace Course for this topic

Mindspace
Guest
Mindspace
7 days 10 hours ago

Which course? Don't have on in production (for this topic) right now. I might create one in the future but not within the next few weeks.

wpDiscuz