Laravel and Angular have both become very well renowned tools in the web development world lately. Laravel for the great things it brings to the PHP community and Angular for the amazing frontend tools and its simplicity. Combining these two great frameworks only seems like the logical next step.
For our use cases, we will be using Laravel as the RESTful API backend and Angular as the frontend to create a very simple single page comment application.
This will be a simple example to show off how to get started using these two technologies so don’t hope for any extra database stuff on how to handle sub-comments or anything like that.
This will be a simple single page comment application:
* RESTful Laravel API to handle getting, creating, and deleting comments
* Angular frontend to handle showing our creation form and the comments
* Ability to create a comment and see it added to our list w/o page refresh
* Ability to delete a comment and see it removed from our list w/o page refresh
Overall, these are very simple concepts. Our focus will be to see the intricacies of how Laravel and Angular can work together.