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

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

Notify of
avatar

meriem ghalleb
Guest
meriem ghalleb
3 days 16 hours 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
9 days 18 hours 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
Денис Чемышенко
13 days 12 hours ago

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

Денис Чемышенко
Guest
Денис Чемышенко
13 days 12 hours ago

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

Mindspace
Guest
Mindspace
13 days 12 hours 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
21 days 19 hours 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
21 days 17 hours 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
22 days 16 hours ago

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

Mindspace
Guest
Mindspace
22 days 12 hours ago

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

Sandy
Guest
Sandy
23 days 4 hours ago

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

Sandy
Guest
Sandy
22 days 17 hours ago

Thanks Max !

Mindspace
Guest
Mindspace
22 days 17 hours ago

Got not much Django experience => Node

Sandy
Guest
Sandy
23 days 3 hours ago

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

Mindspace
Guest
Mindspace
23 days 3 hours 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
29 days 1 hour 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
28 days 11 hours ago

You can serve both from the same server, yes

David Flying
Guest
David Flying
1 month 6 days ago

What if we just put everything in web.php instead of api.php?

Mindspace
Guest
Mindspace
1 month 6 days ago

Hi David, that should also work but you're running through some unnecessary middleware which might also give you some problems (for example CSRF protection).

Vivek Apollyon
Guest
Vivek Apollyon
1 month 7 days ago

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

Mindspace
Guest
Mindspace
1 month 6 days ago

Thanks so much for your awesome feedback Vivek!

Johan Chouquet
Guest
Johan Chouquet
1 month 9 days 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
1 month 9 days 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!

1 2 3
wpDiscuz