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

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

Notify of
avatar

blocSonic
Guest
blocSonic
5 days 3 hours ago

Thanks for this great tutorial. I have a concern regarding JS driven SPAs. How should we handle no JS? For accessibility reasons, I'd like to serve less dynamic content to anyone who lacks the JS (perhaps rendering views normally via laravel?). Any thoughts on that? An additional video for this series covering this concern would be great.

blocSonic
Guest
blocSonic
4 days 23 hours ago
I think this attitude within the JS community is really flawed. 2% of all internet users is still around 56,000,000 people. There are very significant reasons for some people to browse the web without JS. To write them off like they don't matter is misguided, if all you're trying to do is save dev time. Those people should have access to your content, even if they can't access the more dynamic content on your site. In my case, I run a music label which features a site wide audio player, which requires it to be a single page app. There's… Read more »
Mindspace
Guest
Mindspace
5 days 4 minutes ago

You basically can't handle no-JS users. That's the simply truth. Use <noscript> to inform them about this fact but the alternative of building a complete fullstack app to fall back to is probably not worth the effort for ~2% of all users. If your page is heavily visited by people with no JS, you probably shouldn't create a SPA to begin with.

Евгений Дудник
Guest
Евгений Дудник
9 days 18 hours ago

Thank you a lot for you work!! I want to ask you for a long time, why you don't use command line in your IDE?

Mindspace
Guest
Mindspace
9 days 16 hours ago

Thanks so much! I actually do use it a lot in many of my videos :)I believe at the point of time of the recording of these videos there was a bug in the IDE leading to the command line not working correctly – that probably was the reason 🙂

Andrew Kudriavtsev
Guest
Andrew Kudriavtsev
14 days 5 hours ago

Version of Laravel is 5.3

Meri
Guest
Meri
1 month 8 days ago

hello, i'm a newbie here, just started learning laravel & angular, i have a project where i have to create the backend with laravel and the front end with angular2, i'm trying to follow your video, but i don't have the folder "routes", i only have a file called routes found in app folder, is it because of the version? mine is 5.2. Should i use 5.3? Because i've been told that 5.2 is a better version. Thank you for your time

sanjay ahlawat
Guest
sanjay ahlawat
1 month 14 days ago

m getting NotFoundHttpException in RouteCollection.php line 161 error when trying put or delete method in postman. How to resolve this , i know it is coming because of not providing the hidden field for _method. but u r implementing without this and it works well. guide me on this please.

Денис Чемышенко
Guest
Денис Чемышенко
1 month 18 days ago

Why are you not using the built-in phpstorm RESTclient? ps.: sorry for my english )

Денис Чемышенко
Guest
Денис Чемышенко
1 month 18 days ago

thank for your response, what do you think about Advanced Rest Client ?

Mindspace
Guest
Mindspace
1 month 18 days ago

I like showing the creation of the controller actions in greater detail. I believe that building these things on your own really helps you understand what's happening "behind the scenes"

stu smith
Guest
stu smith
1 month 23 days ago

Hi Max you have touched on validation and covered it on your laravel series and we know how IMPORTANT server side validation is. So do you just implement it as with laravel considering you will receive a json post as ->input. sorry if im jumping the gun .

Mindspace
Guest
Mindspace
1 month 23 days ago

You're right, server-side validation is important, especially when working with users. I will cover validation in a couple of videos, once we add authentication

Robi Parvez
Guest
Robi Parvez
1 month 24 days ago

which ver of phpstorm do you use? and what is the theme+color scheme u used here??

Mindspace
Guest
Mindspace
1 month 24 days ago

I typically use the latest one, the theme is "Darcula" (that's no typo ;))

Sandy
Guest
Sandy
1 month 24 days ago

Hello Max – Which is the best programming language for backend with good community and database integration ?

Sandy
Guest
Sandy
1 month 24 days ago

Thanks Max !

Mindspace
Guest
Mindspace
1 month 24 days ago

Got not much Django experience => Node

Sandy
Guest
Sandy
1 month 24 days ago

Very nice answer 🙂 ok if you were choose between Node vs Django which will you pick ?just one answer 🙂

Mindspace
Guest
Mindspace
1 month 24 days ago

There's no best language, it really comes down to your preferences and requirements. Every backend language has its right to exist 😉

Beni Kabona
Guest
Beni Kabona
2 months 2 days ago

A quick questionI also use MAMP for my laravel applications, also i know that angular 2 runs on its own server (npm start). so is it ok to have both (laravel and angualr 2) within mamp (htdocs)?

Mindspace
Guest
Mindspace
2 months 1 day ago

You can serve both from the same server, yes

1 2 3
wpDiscuz