SPA Laravel & AngularJS – 3 – Refactor controller and add Factory

In this tutorial, I will refactor the code so that we can remove the code from the controller to check the login credentials and put that into a factory. A factory should handle the server data and pass it to the controller. It’s better than the controller doesn’t do these things. Continue reading SPA Laravel & AngularJS – 3 – Refactor controller and add Factory

SPA Laravel & AngularJS – 2 – Authentication / Login

In this tutorial I will show you how we can authentication the user from the Angular JS application by sending an AJAX request to the server and then get a response. If we get a success, we will redirect user to dashboard. If credentials are wrong, then he will get an alert about the error. Continue reading SPA Laravel & AngularJS – 2 – Authentication / Login